program prob1
    implicit none
    integer::a(10), b, c, d, e, i
    read(*,*) b, c, d, e
    a = 0
    a(b) = 1
    a(c) = 1
    a(d) = 1
    a(e) = 1
    if(a(1) == 1 .and. a(4) == 1 .and. a(7) == 1 .and. a(9) == 1) then
        write(*,'(a)') "YES"
    else
        write(*,'(a)') "NO"
    end if
    stop
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 = internal unnamed_addr global [10 x i32] undef
@_QQcl.875aee28375f45fc0e35ce87f867585d = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5096/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_QQcl.594553 = linkonce constant [3 x i8] c"YES"
@_QQcl.4E4F = linkonce constant [2 x i8] c"NO"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.875aee28375f45fc0e35ce87f867585d, i32 4)
  %6 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %1, i32 4)
  %7 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %2, i32 4)
  %8 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %3, i32 4)
  %9 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %4, i32 4)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %5)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) @_QFEa, i8 0, i64 40, i1 false), !tbaa !3
  %11 = load i32, ptr %1, align 4, !tbaa !3
  %12 = sext i32 %11 to i64
  %13 = add nsw i64 %12, -1
  %14 = getelementptr [10 x i32], ptr @_QFEa, i64 0, i64 %13
  store i32 1, ptr %14, align 4, !tbaa !3
  %15 = load i32, ptr %2, align 4, !tbaa !3
  %16 = sext i32 %15 to i64
  %17 = add nsw i64 %16, -1
  %18 = getelementptr [10 x i32], ptr @_QFEa, i64 0, i64 %17
  store i32 1, ptr %18, align 4, !tbaa !3
  %19 = load i32, ptr %3, align 4, !tbaa !3
  %20 = sext i32 %19 to i64
  %21 = add nsw i64 %20, -1
  %22 = getelementptr [10 x i32], ptr @_QFEa, i64 0, i64 %21
  store i32 1, ptr %22, align 4, !tbaa !3
  %23 = load i32, ptr %4, align 4, !tbaa !3
  %24 = sext i32 %23 to i64
  %25 = add nsw i64 %24, -1
  %26 = getelementptr [10 x i32], ptr @_QFEa, i64 0, i64 %25
  store i32 1, ptr %26, align 4, !tbaa !3
  %27 = load i32, ptr @_QFEa, align 16, !tbaa !3
  %28 = icmp eq i32 %27, 1
  %29 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEa, i64 0, i64 3), align 4, !tbaa !3
  %30 = icmp eq i32 %29, 1
  %31 = and i1 %28, %30
  %32 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEa, i64 0, i64 6), align 8, !tbaa !3
  %33 = icmp eq i32 %32, 1
  %34 = and i1 %31, %33
  %35 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEa, i64 0, i64 8), align 16, !tbaa !3
  %36 = icmp eq i32 %35, 1
  %37 = and i1 %34, %36
  %. = select i1 %37, i32 11, i32 13
  %.3 = select i1 %37, i64 3, i64 2
  %_QQcl.594553._QQcl.4E4F = select i1 %37, ptr @_QQcl.594553, ptr @_QQcl.4E4F
  %38 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.875aee28375f45fc0e35ce87f867585d, i32 %.)
  %39 = call i1 @_FortranAioOutputAscii(ptr %38, ptr nonnull %_QQcl.594553._QQcl.4E4F, i64 %.3)
  %40 = call i32 @_FortranAioEndIoStatement(ptr %38)
  %41 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

declare {} @_FortranAStopStatement(i32, i1, i1) 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 = { noreturn }
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 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
