      PROGRAM piyo
      IMPLICIT NONE
      integer(16) :: h,n
      integer(16),allocatable :: a(:)
      
      read*,h,n
      allocate(a(n))
      read*,a(:)
      
      if( sum(a)>=h )then
        print*,'Yes'
      else
        print*,'No'
      end if
      
      
      
      
      
      END PROGRAM
; 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.0 = internal unnamed_addr global ptr null
@_QFEa.8 = internal unnamed_addr global i64 0
@_QQcl.b94a9bddfa9ca4effa515757a0c13e19 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2507/source.f\00"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_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 i128, align 8
  %3 = alloca i128, align 8
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.b94a9bddfa9ca4effa515757a0c13e19, i32 6)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %2, i32 16)
  %6 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 16)
  %7 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %8 = load i128, ptr %3, align 8, !tbaa !3
  %9 = trunc i128 %8 to i64
  %10 = call i64 @llvm.smax.i64(i64 %9, i64 0)
  %11 = shl i64 %10, 4
  %12 = call ptr @malloc(i64 %11)
  store ptr %12, ptr @_QFEa.0, align 8, !tbaa !7
  store i64 %10, ptr @_QFEa.8, align 8, !tbaa !7
  %13 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.b94a9bddfa9ca4effa515757a0c13e19, i32 8)
  %.unpack = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  %.unpack103.unpack.unpack105 = load i64, ptr @_QFEa.8, align 8, !tbaa !7
  %14 = call i64 @llvm.smax.i64(i64 %.unpack103.unpack.unpack105, i64 0)
  store ptr %.unpack, ptr %1, align 8, !tbaa !7
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  store i64 16, 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 %1, 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 %1, 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 %1, i64 0, i32 4
  store i8 11, 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 %1, 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 %1, 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 %1, 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 %1, i64 0, i32 7, i64 0, i64 1
  store i64 %14, 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 %1, i64 0, i32 7, i64 0, i64 2
  store i64 16, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %15 = call i1 @_FortranAioInputDescriptor(ptr %13, ptr nonnull %1)
  %16 = call i32 @_FortranAioEndIoStatement(ptr %13)
  %.unpack108 = load ptr, ptr @_QFEa.0, align 8, !tbaa !7
  %.unpack115.unpack.unpack117 = load i64, ptr @_QFEa.8, align 8, !tbaa !7
  %17 = icmp sgt i64 %.unpack115.unpack.unpack117, 0
  br i1 %17, label %.lr.ph.i.preheader, label %_FortranASumInteger16x1_contract_simplified.exit

.lr.ph.i.preheader:                               ; preds = %0
  %xtraiter = and i64 %.unpack115.unpack.unpack117, 3
  %18 = icmp ult i64 %.unpack115.unpack.unpack117, 4
  br i1 %18, label %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa, label %.lr.ph.i.preheader.new

.lr.ph.i.preheader.new:                           ; preds = %.lr.ph.i.preheader
  %unroll_iter = and i64 %.unpack115.unpack.unpack117, -4
  br label %.lr.ph.i

.lr.ph.i:                                         ; preds = %.lr.ph.i, %.lr.ph.i.preheader.new
  %19 = phi i128 [ 0, %.lr.ph.i.preheader.new ], [ %39, %.lr.ph.i ]
  %20 = phi i64 [ 0, %.lr.ph.i.preheader.new ], [ %40, %.lr.ph.i ]
  %niter = phi i64 [ 0, %.lr.ph.i.preheader.new ], [ %niter.next.3, %.lr.ph.i ]
  %21 = shl i64 %20, 4
  %22 = getelementptr i8, ptr %.unpack108, i64 %21
  %23 = load i128, ptr %22, align 8, !tbaa !3
  %24 = add i128 %23, %19
  %25 = shl i64 %20, 4
  %26 = or i64 %25, 16
  %27 = getelementptr i8, ptr %.unpack108, i64 %26
  %28 = load i128, ptr %27, align 8, !tbaa !3
  %29 = add i128 %28, %24
  %30 = shl i64 %20, 4
  %31 = or i64 %30, 32
  %32 = getelementptr i8, ptr %.unpack108, i64 %31
  %33 = load i128, ptr %32, align 8, !tbaa !3
  %34 = add i128 %33, %29
  %35 = shl i64 %20, 4
  %36 = or i64 %35, 48
  %37 = getelementptr i8, ptr %.unpack108, i64 %36
  %38 = load i128, ptr %37, align 8, !tbaa !3
  %39 = add i128 %38, %34
  %40 = add nuw nsw i64 %20, 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 %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa, label %.lr.ph.i

_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa: ; preds = %.lr.ph.i, %.lr.ph.i.preheader
  %.lcssa.ph = phi i128 [ undef, %.lr.ph.i.preheader ], [ %39, %.lr.ph.i ]
  %.unr = phi i128 [ 0, %.lr.ph.i.preheader ], [ %39, %.lr.ph.i ]
  %.unr120 = phi i64 [ 0, %.lr.ph.i.preheader ], [ %40, %.lr.ph.i ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %_FortranASumInteger16x1_contract_simplified.exit, label %.lr.ph.i.epil

.lr.ph.i.epil:                                    ; preds = %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa, %.lr.ph.i.epil
  %41 = phi i128 [ %46, %.lr.ph.i.epil ], [ %.unr, %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa ]
  %42 = phi i64 [ %47, %.lr.ph.i.epil ], [ %.unr120, %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.i.epil ], [ 0, %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa ]
  %43 = shl i64 %42, 4
  %44 = getelementptr i8, ptr %.unpack108, i64 %43
  %45 = load i128, ptr %44, align 8, !tbaa !3
  %46 = add i128 %45, %41
  %47 = add nuw nsw i64 %42, 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 %_FortranASumInteger16x1_contract_simplified.exit, label %.lr.ph.i.epil, !llvm.loop !9

_FortranASumInteger16x1_contract_simplified.exit: ; preds = %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa, %.lr.ph.i.epil, %0
  %.lcssa.i = phi i128 [ 0, %0 ], [ %.lcssa.ph, %_FortranASumInteger16x1_contract_simplified.exit.loopexit.unr-lcssa ], [ %46, %.lr.ph.i.epil ]
  %48 = load i128, ptr %2, align 8, !tbaa !3
  %.not = icmp slt i128 %.lcssa.i, %48
  br i1 %.not, label %52, label %49

49:                                               ; preds = %_FortranASumInteger16x1_contract_simplified.exit
  %50 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.b94a9bddfa9ca4effa515757a0c13e19, i32 11)
  %51 = call i1 @_FortranAioOutputAscii(ptr %50, ptr nonnull @_QQcl.596573, i64 3)
  br label %55

52:                                               ; preds = %_FortranASumInteger16x1_contract_simplified.exit
  %53 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.b94a9bddfa9ca4effa515757a0c13e19, i32 13)
  %54 = call i1 @_FortranAioOutputAscii(ptr %53, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %55

55:                                               ; preds = %49, %52
  %.sink = phi ptr [ %50, %49 ], [ %53, %52 ]
  %56 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  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 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.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) }

!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"}
