program multiple_of_9
  implicit none
  integer :: n(200000) = 0
  read(*,'(*(i1))') n
  write(*,'(a)') trim(merge('Yes', 'No ', mod(sum(n), 9) == 0))
end program multiple_of_9
; 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"

@_QFEn = internal global [200000 x i32] zeroinitializer
@_QQcl.282A2869312929 = linkonce constant [7 x i8] c"(*(i1))"
@_QQcl.dd98da210f659043d2c50b602e9ffda6 = linkonce constant [72 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_737/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQcl.4E6F20 = linkonce constant [3 x i8] c"No "
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

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

define void @_QQmain() local_unnamed_addr {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, 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 }, align 8
  %4 = tail call ptr @_FortranAioBeginExternalFormattedInput(ptr nonnull @_QQcl.282A2869312929, i64 7, ptr null, i32 -1, ptr nonnull @_QQcl.dd98da210f659043d2c50b602e9ffda6, i32 4)
  store ptr @_QFEn, ptr %2, align 8, !tbaa !3
  %.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 !3
  %.fca.2.gep10 = 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.gep10, align 8, !tbaa !3
  %.fca.3.gep11 = 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.gep11, align 4, !tbaa !3
  %.fca.4.gep12 = 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.gep12, align 1, !tbaa !3
  %.fca.5.gep13 = 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.gep13, align 2, !tbaa !3
  %.fca.6.gep14 = 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.gep14, align 1, !tbaa !3
  %.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 !3
  %.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 200000, ptr %.fca.7.0.1.gep, align 8, !tbaa !3
  %.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 !3
  %5 = call i1 @_FortranAioInputDescriptor(ptr %4, ptr nonnull %2)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %7 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.dd98da210f659043d2c50b602e9ffda6, i32 5)
  %8 = load i64, ptr %.fca.7.0.1.gep, align 8, !tbaa !3
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph.i, label %_FortranASumInteger4x1_contract_simplified.exit

.lr.ph.i:                                         ; preds = %0
  %10 = load ptr, ptr %2, align 8, !tbaa !3
  %11 = load i64, ptr %.fca.7.0.2.gep, align 8, !tbaa !3
  %xtraiter = and i64 %8, 3
  %12 = icmp ult i64 %8, 4
  br i1 %12, label %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa, label %.lr.ph.i.new

.lr.ph.i.new:                                     ; preds = %.lr.ph.i
  %unroll_iter = and i64 %8, -4
  br label %13

13:                                               ; preds = %13, %.lr.ph.i.new
  %14 = phi i32 [ 0, %.lr.ph.i.new ], [ %34, %13 ]
  %15 = phi i64 [ 0, %.lr.ph.i.new ], [ %35, %13 ]
  %niter = phi i64 [ 0, %.lr.ph.i.new ], [ %niter.next.3, %13 ]
  %16 = mul i64 %15, %11
  %17 = getelementptr i8, ptr %10, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !7
  %19 = add i32 %18, %14
  %20 = or i64 %15, 1
  %21 = mul i64 %20, %11
  %22 = getelementptr i8, ptr %10, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !7
  %24 = add i32 %23, %19
  %25 = or i64 %15, 2
  %26 = mul i64 %25, %11
  %27 = getelementptr i8, ptr %10, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !7
  %29 = add i32 %28, %24
  %30 = or i64 %15, 3
  %31 = mul i64 %30, %11
  %32 = getelementptr i8, ptr %10, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !7
  %34 = add i32 %33, %29
  %35 = add nuw nsw i64 %15, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa, label %13

_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa: ; preds = %13, %.lr.ph.i
  %.lcssa.ph = phi i32 [ undef, %.lr.ph.i ], [ %34, %13 ]
  %.unr = phi i32 [ 0, %.lr.ph.i ], [ %34, %13 ]
  %.unr62 = phi i64 [ 0, %.lr.ph.i ], [ %35, %13 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %_FortranASumInteger4x1_contract_simplified.exit.loopexit, label %.epil.preheader

.epil.preheader:                                  ; preds = %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa, %.epil.preheader
  %36 = phi i32 [ %41, %.epil.preheader ], [ %.unr, %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa ]
  %37 = phi i64 [ %42, %.epil.preheader ], [ %.unr62, %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa ]
  %38 = mul i64 %37, %11
  %39 = getelementptr i8, ptr %10, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !7
  %41 = add i32 %40, %36
  %42 = add nuw nsw i64 %37, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %_FortranASumInteger4x1_contract_simplified.exit.loopexit, label %.epil.preheader, !llvm.loop !9

_FortranASumInteger4x1_contract_simplified.exit.loopexit: ; preds = %.epil.preheader, %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa
  %.lcssa = phi i32 [ %.lcssa.ph, %_FortranASumInteger4x1_contract_simplified.exit.loopexit.unr-lcssa ], [ %41, %.epil.preheader ]
  %43 = srem i32 %.lcssa, 9
  %44 = icmp eq i32 %43, 0
  %45 = select i1 %44, ptr @_QQcl.596573, ptr @_QQcl.4E6F20
  br label %_FortranASumInteger4x1_contract_simplified.exit

_FortranASumInteger4x1_contract_simplified.exit:  ; preds = %_FortranASumInteger4x1_contract_simplified.exit.loopexit, %0
  %.lcssa.i = phi ptr [ @_QQcl.596573, %0 ], [ %45, %_FortranASumInteger4x1_contract_simplified.exit.loopexit ]
  store ptr %.lcssa.i, ptr %1, align 8, !tbaa !3
  %.fca.1.gep18 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 1
  store i64 3, ptr %.fca.1.gep18, align 8, !tbaa !3
  %.fca.2.gep20 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep20, align 8, !tbaa !3
  %.fca.3.gep22 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep22, align 4, !tbaa !3
  %.fca.4.gep24 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep24, align 1, !tbaa !3
  %.fca.5.gep26 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep26, align 2, !tbaa !3
  %.fca.6.gep28 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep28, align 1, !tbaa !3
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 1
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !3
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep, align 4, !tbaa !3
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep, align 1, !tbaa !3
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep, align 2, !tbaa !3
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !3
  %46 = call {} @_FortranATrim(ptr nonnull %3, ptr nonnull %1, ptr nonnull @_QQcl.dd98da210f659043d2c50b602e9ffda6, i32 5)
  %.fca.0.load = load ptr, ptr %3, align 8, !tbaa !3
  %.fca.1.load = load i64, ptr %.fca.1.gep, align 8, !tbaa !3
  %47 = call i1 @_FortranAioOutputAscii(ptr %7, ptr %.fca.0.load, i64 %.fca.1.load)
  call void @free(ptr %.fca.0.load)
  %48 = call i32 @_FortranAioEndIoStatement(ptr %7)
  ret void
}

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

declare i1 @_FortranAioInputDescriptor(ptr, ptr) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

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

declare i1 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

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

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

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }

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

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