program foods_loved_by_everyone
  implicit none
  integer :: n, m, k, a(30), f(30) = 0, i, j
  read(*,*) n, m
  do i = 1, n
    read(*,*) k, a(1:k)
    do j = 1, k
      f(a(j)) = f(a(j))+1
    end do
  end do
  write(*,'(i0)') sum([(1,i=1,m)],mask=f == n)
end program foods_loved_by_everyone
; 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 global [30 x i32] undef
@_QFEf = internal unnamed_addr global [30 x i32] zeroinitializer
@_QQcl.cc9a83ac56aed20ab54eed08a013fc29 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4920/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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.cc9a83ac56aed20ab54eed08a013fc29, i32 4)
  %8 = call i1 @_FortranAioInputInteger(ptr %7, ptr nonnull %6, i32 4)
  %9 = call i1 @_FortranAioInputInteger(ptr %7, ptr nonnull %5, i32 4)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %7)
  %11 = load i32, ptr %6, align 4, !tbaa !3
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph54, label %._crit_edge55

.lr.ph54:                                         ; preds = %0
  %13 = zext i32 %11 to i64
  %.fca.1.gep29 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  %.fca.2.gep31 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 2
  %.fca.3.gep33 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 3
  %.fca.4.gep35 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  %.fca.5.gep37 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 5
  %.fca.6.gep39 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 6
  %.fca.7.0.0.gep41 = 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.gep43 = 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.gep45 = 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 %14

14:                                               ; preds = %.lr.ph54, %._crit_edge
  %15 = phi i64 [ %13, %.lr.ph54 ], [ %50, %._crit_edge ]
  %16 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.cc9a83ac56aed20ab54eed08a013fc29, i32 6)
  %17 = call i1 @_FortranAioInputInteger(ptr %16, ptr nonnull %4, i32 4)
  %18 = load i32, ptr %4, align 4, !tbaa !3
  %19 = call i32 @llvm.smax.i32(i32 %18, i32 0)
  %20 = zext i32 %19 to i64
  store ptr @_QFEa, ptr %1, align 8, !tbaa !7
  store i64 4, ptr %.fca.1.gep29, align 8, !tbaa !7
  store i32 20180515, ptr %.fca.2.gep31, align 8, !tbaa !7
  store i8 1, ptr %.fca.3.gep33, align 4, !tbaa !7
  store i8 9, ptr %.fca.4.gep35, align 1, !tbaa !7
  store i8 0, ptr %.fca.5.gep37, align 2, !tbaa !7
  store i8 0, ptr %.fca.6.gep39, align 1, !tbaa !7
  store i64 1, ptr %.fca.7.0.0.gep41, align 8, !tbaa !7
  store i64 %20, ptr %.fca.7.0.1.gep43, align 8, !tbaa !7
  store i64 4, ptr %.fca.7.0.2.gep45, align 8, !tbaa !7
  %21 = call i1 @_FortranAioInputDescriptor(ptr %16, ptr nonnull %1)
  %22 = call i32 @_FortranAioEndIoStatement(ptr %16)
  %23 = load i32, ptr %4, align 4, !tbaa !3
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %14
  %25 = zext i32 %23 to i64
  %xtraiter = and i64 %25, 1
  %26 = icmp eq i32 %23, 1
  br i1 %26, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %25, 4294967294
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %27 = add nsw i64 %indvars.iv, -1
  %28 = getelementptr [30 x i32], ptr @_QFEa, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !3
  %30 = sext i32 %29 to i64
  %31 = add nsw i64 %30, -1
  %32 = getelementptr [30 x i32], ptr @_QFEf, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !3
  %34 = add i32 %33, 1
  store i32 %34, ptr %32, align 4, !tbaa !3
  %35 = getelementptr [30 x i32], ptr @_QFEa, i64 0, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !3
  %37 = sext i32 %36 to i64
  %38 = add nsw i64 %37, -1
  %39 = getelementptr [30 x i32], ptr @_QFEf, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !3
  %41 = add i32 %40, 1
  store i32 %41, ptr %39, align 4, !tbaa !3
  %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.ph

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

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %42 = add nsw i64 %indvars.iv.unr, -1
  %43 = getelementptr [30 x i32], ptr @_QFEa, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !3
  %45 = sext i32 %44 to i64
  %46 = add nsw i64 %45, -1
  %47 = getelementptr [30 x i32], ptr @_QFEf, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !3
  %49 = add i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !3
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %14
  %50 = add nsw i64 %15, -1
  %51 = icmp sgt i64 %15, 1
  br i1 %51, label %14, label %._crit_edge55

._crit_edge55:                                    ; preds = %._crit_edge, %0
  %52 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.cc9a83ac56aed20ab54eed08a013fc29, i32 11)
  %53 = call dereferenceable_or_null(128) ptr @malloc(i64 128)
  %54 = load i32, ptr %5, align 4, !tbaa !3
  %55 = sext i32 %54 to i64
  %56 = icmp sgt i32 %54, 0
  br i1 %56, label %.lr.ph59, label %._crit_edge60.thread

._crit_edge60.thread:                             ; preds = %._crit_edge55
  %57 = call ptr @malloc(i64 0)
  br label %._crit_edge64

.lr.ph59:                                         ; preds = %._crit_edge55, %64
  %58 = phi ptr [ %65, %64 ], [ %53, %._crit_edge55 ]
  %.057 = phi i64 [ %.1, %64 ], [ 32, %._crit_edge55 ]
  %.04656 = phi i64 [ %59, %64 ], [ 0, %._crit_edge55 ]
  %59 = add nuw nsw i64 %.04656, 1
  %.not = icmp sgt i64 %.057, %59
  br i1 %.not, label %64, label %60

60:                                               ; preds = %.lr.ph59
  %61 = shl nuw i64 %59, 1
  %62 = shl i64 %59, 3
  %63 = call ptr @realloc(ptr %58, i64 %62)
  br label %64

64:                                               ; preds = %60, %.lr.ph59
  %.1 = phi i64 [ %61, %60 ], [ %.057, %.lr.ph59 ]
  %65 = phi ptr [ %63, %60 ], [ %58, %.lr.ph59 ]
  %66 = getelementptr i32, ptr %65, i64 %.04656
  store i32 1, ptr %66, align 4, !tbaa !3
  %exitcond68.not = icmp eq i64 %59, %55
  br i1 %exitcond68.not, label %._crit_edge60, label %.lr.ph59

._crit_edge60:                                    ; preds = %64
  %67 = shl nsw i64 %55, 2
  %68 = call ptr @malloc(i64 %67)
  %69 = icmp sgt i32 %54, 0
  br i1 %69, label %.lr.ph63.preheader, label %._crit_edge64

.lr.ph63.preheader:                               ; preds = %._crit_edge60
  %70 = ptrtoint ptr %68 to i64
  %.lcssa75 = ptrtoint ptr %65 to i64
  %min.iters.check = icmp ult i32 %54, 8
  %71 = sub i64 %70, %.lcssa75
  %diff.check = icmp ult i64 %71, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %.lr.ph63.preheader77, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph63.preheader
  %n.vec = and i64 %55, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %72 = getelementptr i32, ptr %65, i64 %index
  %wide.load = load <4 x i32>, ptr %72, align 4, !tbaa !3
  %73 = getelementptr i32, ptr %72, i64 4
  %wide.load76 = load <4 x i32>, ptr %73, align 4, !tbaa !3
  %74 = getelementptr i32, ptr %68, i64 %index
  store <4 x i32> %wide.load, ptr %74, align 4, !tbaa !3
  %75 = getelementptr i32, ptr %74, i64 4
  store <4 x i32> %wide.load76, ptr %75, align 4, !tbaa !3
  %index.next = add nuw i64 %index, 8
  %76 = icmp eq i64 %index.next, %n.vec
  br i1 %76, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %55
  br i1 %cmp.n, label %._crit_edge64, label %.lr.ph63.preheader77

.lr.ph63.preheader77:                             ; preds = %.lr.ph63.preheader, %middle.block
  %.ph = phi i64 [ 0, %.lr.ph63.preheader ], [ %n.vec, %middle.block ]
  %77 = xor i64 %.ph, -1
  %78 = add nsw i64 %77, %55
  %xtraiter78 = and i64 %55, 3
  %lcmp.mod79.not = icmp eq i64 %xtraiter78, 0
  br i1 %lcmp.mod79.not, label %.lr.ph63.prol.loopexit, label %.lr.ph63.prol

.lr.ph63.prol:                                    ; preds = %.lr.ph63.preheader77, %.lr.ph63.prol
  %79 = phi i64 [ %80, %.lr.ph63.prol ], [ %.ph, %.lr.ph63.preheader77 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph63.prol ], [ 0, %.lr.ph63.preheader77 ]
  %80 = add nuw nsw i64 %79, 1
  %81 = getelementptr i32, ptr %65, i64 %79
  %82 = load i32, ptr %81, align 4, !tbaa !3
  %83 = getelementptr i32, ptr %68, i64 %79
  store i32 %82, ptr %83, align 4, !tbaa !3
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter78
  br i1 %prol.iter.cmp.not, label %.lr.ph63.prol.loopexit, label %.lr.ph63.prol, !llvm.loop !12

.lr.ph63.prol.loopexit:                           ; preds = %.lr.ph63.prol, %.lr.ph63.preheader77
  %.unr = phi i64 [ %.ph, %.lr.ph63.preheader77 ], [ %80, %.lr.ph63.prol ]
  %84 = icmp ult i64 %78, 3
  br i1 %84, label %._crit_edge64, label %.lr.ph63

.lr.ph63:                                         ; preds = %.lr.ph63.prol.loopexit, %.lr.ph63
  %85 = phi i64 [ %98, %.lr.ph63 ], [ %.unr, %.lr.ph63.prol.loopexit ]
  %86 = add nuw nsw i64 %85, 1
  %87 = getelementptr i32, ptr %65, i64 %85
  %88 = load i32, ptr %87, align 4, !tbaa !3
  %89 = getelementptr i32, ptr %68, i64 %85
  store i32 %88, ptr %89, align 4, !tbaa !3
  %90 = add nuw nsw i64 %85, 2
  %91 = getelementptr i32, ptr %65, i64 %86
  %92 = load i32, ptr %91, align 4, !tbaa !3
  %93 = getelementptr i32, ptr %68, i64 %86
  store i32 %92, ptr %93, align 4, !tbaa !3
  %94 = add nuw nsw i64 %85, 3
  %95 = getelementptr i32, ptr %65, i64 %90
  %96 = load i32, ptr %95, align 4, !tbaa !3
  %97 = getelementptr i32, ptr %68, i64 %90
  store i32 %96, ptr %97, align 4, !tbaa !3
  %98 = add nuw nsw i64 %85, 4
  %99 = getelementptr i32, ptr %65, i64 %94
  %100 = load i32, ptr %99, align 4, !tbaa !3
  %101 = getelementptr i32, ptr %68, i64 %94
  store i32 %100, ptr %101, align 4, !tbaa !3
  %exitcond69.not.3 = icmp eq i64 %98, %55
  br i1 %exitcond69.not.3, label %._crit_edge64, label %.lr.ph63, !llvm.loop !14

._crit_edge64:                                    ; preds = %.lr.ph63.prol.loopexit, %.lr.ph63, %middle.block, %._crit_edge60.thread, %._crit_edge60
  %102 = phi ptr [ %57, %._crit_edge60.thread ], [ %68, %._crit_edge60 ], [ %68, %middle.block ], [ %68, %.lr.ph63 ], [ %68, %.lr.ph63.prol.loopexit ]
  %.lcssa74 = phi ptr [ %53, %._crit_edge60.thread ], [ %65, %._crit_edge60 ], [ %65, %middle.block ], [ %65, %.lr.ph63 ], [ %65, %.lr.ph63.prol.loopexit ]
  %.046.lcssa73 = phi i64 [ 0, %._crit_edge60.thread ], [ %55, %._crit_edge60 ], [ %55, %middle.block ], [ %55, %.lr.ph63 ], [ %55, %.lr.ph63.prol.loopexit ]
  store ptr %102, ptr %3, align 8, !tbaa !7
  %.fca.1.gep = 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.gep, align 8, !tbaa !7
  %.fca.2.gep = 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.gep, align 8, !tbaa !7
  %.fca.3.gep = 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.gep, align 4, !tbaa !7
  %.fca.4.gep = 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.gep, align 1, !tbaa !7
  %.fca.5.gep = 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.gep, align 2, !tbaa !7
  %.fca.6.gep = 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.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 %3, 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 %3, i64 0, i32 7, i64 0, i64 1
  store i64 %.046.lcssa73, 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 %3, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %103 = load i32, ptr %6, align 4, !tbaa !3
  %104 = call dereferenceable_or_null(120) ptr @malloc(i64 120)
  %105 = load i32, ptr @_QFEf, align 16, !tbaa !3
  %106 = icmp eq i32 %105, %103
  %107 = zext i1 %106 to i32
  store i32 %107, ptr %104, align 4, !tbaa !3
  %108 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 1), align 4, !tbaa !3
  %109 = icmp eq i32 %108, %103
  %110 = zext i1 %109 to i32
  %111 = getelementptr i32, ptr %104, i64 1
  store i32 %110, ptr %111, align 4, !tbaa !3
  %112 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 2), align 8, !tbaa !3
  %113 = icmp eq i32 %112, %103
  %114 = zext i1 %113 to i32
  %115 = getelementptr i32, ptr %104, i64 2
  store i32 %114, ptr %115, align 4, !tbaa !3
  %116 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 3), align 4, !tbaa !3
  %117 = icmp eq i32 %116, %103
  %118 = zext i1 %117 to i32
  %119 = getelementptr i32, ptr %104, i64 3
  store i32 %118, ptr %119, align 4, !tbaa !3
  %120 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 4), align 16, !tbaa !3
  %121 = icmp eq i32 %120, %103
  %122 = zext i1 %121 to i32
  %123 = getelementptr i32, ptr %104, i64 4
  store i32 %122, ptr %123, align 4, !tbaa !3
  %124 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 5), align 4, !tbaa !3
  %125 = icmp eq i32 %124, %103
  %126 = zext i1 %125 to i32
  %127 = getelementptr i32, ptr %104, i64 5
  store i32 %126, ptr %127, align 4, !tbaa !3
  %128 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 6), align 8, !tbaa !3
  %129 = icmp eq i32 %128, %103
  %130 = zext i1 %129 to i32
  %131 = getelementptr i32, ptr %104, i64 6
  store i32 %130, ptr %131, align 4, !tbaa !3
  %132 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 7), align 4, !tbaa !3
  %133 = icmp eq i32 %132, %103
  %134 = zext i1 %133 to i32
  %135 = getelementptr i32, ptr %104, i64 7
  store i32 %134, ptr %135, align 4, !tbaa !3
  %136 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 8), align 16, !tbaa !3
  %137 = icmp eq i32 %136, %103
  %138 = zext i1 %137 to i32
  %139 = getelementptr i32, ptr %104, i64 8
  store i32 %138, ptr %139, align 4, !tbaa !3
  %140 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 9), align 4, !tbaa !3
  %141 = icmp eq i32 %140, %103
  %142 = zext i1 %141 to i32
  %143 = getelementptr i32, ptr %104, i64 9
  store i32 %142, ptr %143, align 4, !tbaa !3
  %144 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 10), align 8, !tbaa !3
  %145 = icmp eq i32 %144, %103
  %146 = zext i1 %145 to i32
  %147 = getelementptr i32, ptr %104, i64 10
  store i32 %146, ptr %147, align 4, !tbaa !3
  %148 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 11), align 4, !tbaa !3
  %149 = icmp eq i32 %148, %103
  %150 = zext i1 %149 to i32
  %151 = getelementptr i32, ptr %104, i64 11
  store i32 %150, ptr %151, align 4, !tbaa !3
  %152 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 12), align 16, !tbaa !3
  %153 = icmp eq i32 %152, %103
  %154 = zext i1 %153 to i32
  %155 = getelementptr i32, ptr %104, i64 12
  store i32 %154, ptr %155, align 4, !tbaa !3
  %156 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 13), align 4, !tbaa !3
  %157 = icmp eq i32 %156, %103
  %158 = zext i1 %157 to i32
  %159 = getelementptr i32, ptr %104, i64 13
  store i32 %158, ptr %159, align 4, !tbaa !3
  %160 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 14), align 8, !tbaa !3
  %161 = icmp eq i32 %160, %103
  %162 = zext i1 %161 to i32
  %163 = getelementptr i32, ptr %104, i64 14
  store i32 %162, ptr %163, align 4, !tbaa !3
  %164 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 15), align 4, !tbaa !3
  %165 = icmp eq i32 %164, %103
  %166 = zext i1 %165 to i32
  %167 = getelementptr i32, ptr %104, i64 15
  store i32 %166, ptr %167, align 4, !tbaa !3
  %168 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 16), align 16, !tbaa !3
  %169 = icmp eq i32 %168, %103
  %170 = zext i1 %169 to i32
  %171 = getelementptr i32, ptr %104, i64 16
  store i32 %170, ptr %171, align 4, !tbaa !3
  %172 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 17), align 4, !tbaa !3
  %173 = icmp eq i32 %172, %103
  %174 = zext i1 %173 to i32
  %175 = getelementptr i32, ptr %104, i64 17
  store i32 %174, ptr %175, align 4, !tbaa !3
  %176 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 18), align 8, !tbaa !3
  %177 = icmp eq i32 %176, %103
  %178 = zext i1 %177 to i32
  %179 = getelementptr i32, ptr %104, i64 18
  store i32 %178, ptr %179, align 4, !tbaa !3
  %180 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 19), align 4, !tbaa !3
  %181 = icmp eq i32 %180, %103
  %182 = zext i1 %181 to i32
  %183 = getelementptr i32, ptr %104, i64 19
  store i32 %182, ptr %183, align 4, !tbaa !3
  %184 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 20), align 16, !tbaa !3
  %185 = icmp eq i32 %184, %103
  %186 = zext i1 %185 to i32
  %187 = getelementptr i32, ptr %104, i64 20
  store i32 %186, ptr %187, align 4, !tbaa !3
  %188 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 21), align 4, !tbaa !3
  %189 = icmp eq i32 %188, %103
  %190 = zext i1 %189 to i32
  %191 = getelementptr i32, ptr %104, i64 21
  store i32 %190, ptr %191, align 4, !tbaa !3
  %192 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 22), align 8, !tbaa !3
  %193 = icmp eq i32 %192, %103
  %194 = zext i1 %193 to i32
  %195 = getelementptr i32, ptr %104, i64 22
  store i32 %194, ptr %195, align 4, !tbaa !3
  %196 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 23), align 4, !tbaa !3
  %197 = icmp eq i32 %196, %103
  %198 = zext i1 %197 to i32
  %199 = getelementptr i32, ptr %104, i64 23
  store i32 %198, ptr %199, align 4, !tbaa !3
  %200 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 24), align 16, !tbaa !3
  %201 = icmp eq i32 %200, %103
  %202 = zext i1 %201 to i32
  %203 = getelementptr i32, ptr %104, i64 24
  store i32 %202, ptr %203, align 4, !tbaa !3
  %204 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 25), align 4, !tbaa !3
  %205 = icmp eq i32 %204, %103
  %206 = zext i1 %205 to i32
  %207 = getelementptr i32, ptr %104, i64 25
  store i32 %206, ptr %207, align 4, !tbaa !3
  %208 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 26), align 8, !tbaa !3
  %209 = icmp eq i32 %208, %103
  %210 = zext i1 %209 to i32
  %211 = getelementptr i32, ptr %104, i64 26
  store i32 %210, ptr %211, align 4, !tbaa !3
  %212 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 27), align 4, !tbaa !3
  %213 = icmp eq i32 %212, %103
  %214 = zext i1 %213 to i32
  %215 = getelementptr i32, ptr %104, i64 27
  store i32 %214, ptr %215, align 4, !tbaa !3
  %216 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 28), align 16, !tbaa !3
  %217 = icmp eq i32 %216, %103
  %218 = zext i1 %217 to i32
  %219 = getelementptr i32, ptr %104, i64 28
  store i32 %218, ptr %219, align 4, !tbaa !3
  %220 = load i32, ptr getelementptr inbounds ([30 x i32], ptr @_QFEf, i64 0, i64 29), align 4, !tbaa !3
  %221 = icmp eq i32 %220, %103
  %222 = zext i1 %221 to i32
  %223 = getelementptr i32, ptr %104, i64 29
  store i32 %222, ptr %223, align 4, !tbaa !3
  store ptr %104, ptr %2, align 8, !tbaa !7
  %.fca.1.gep9 = 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.gep9, align 8, !tbaa !7
  %.fca.2.gep11 = 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.gep11, align 8, !tbaa !7
  %.fca.3.gep13 = 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.gep13, align 4, !tbaa !7
  %.fca.4.gep15 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 4
  store i8 14, ptr %.fca.4.gep15, align 1, !tbaa !7
  %.fca.5.gep17 = 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.gep17, align 2, !tbaa !7
  %.fca.6.gep19 = 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.gep19, align 1, !tbaa !7
  %.fca.7.0.0.gep21 = 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.gep21, align 8, !tbaa !7
  %.fca.7.0.1.gep23 = 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 30, ptr %.fca.7.0.1.gep23, align 8, !tbaa !7
  %.fca.7.0.2.gep25 = 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.gep25, align 8, !tbaa !7
  %224 = call i32 @_FortranASumInteger4(ptr nonnull %3, ptr nonnull @_QQcl.cc9a83ac56aed20ab54eed08a013fc29, i32 11, i32 0, ptr nonnull %2)
  %225 = call i1 @_FortranAioOutputInteger32(ptr %52, i32 %224)
  call void @free(ptr %104)
  call void @free(ptr %102)
  call void @free(ptr %.lcssa74)
  %226 = call i32 @_FortranAioEndIoStatement(ptr %52)
  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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(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 #2

declare i32 @_FortranASumInteger4(ptr, ptr, i32, i32, ptr) 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #2 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
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 = !{!"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, !11}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !10}
