integer,allocatable,dimension(:)::K
integer a
allocate(K(5))
do i=1,5
 read*,K(i)
end do
read*,a
if(maxval(K)-minval(K)>a)print"(A)",":("
if(maxval(K)-minval(K)<=a)print"(A)","Yay!"
end
; 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"

@_QFEk.0 = internal unnamed_addr global ptr null
@_QQcl.7d85554cd50aeeee899dedd03a497de4 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4520/source.f\00"
@_QQcl.284129 = linkonce constant [3 x i8] c"(A)"
@_QQcl.3A28 = linkonce constant [2 x i8] c":("
@_QQcl.59617921 = linkonce constant [4 x i8] c"Yay!"
@_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 {
.lr.ph.i.preheader:
  %0 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %2 = alloca i32, align 4
  %3 = tail call dereferenceable_or_null(20) ptr @malloc(i64 20)
  store ptr %3, ptr @_QFEk.0, align 8, !tbaa !3
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 5)
  %.unpack273 = load ptr, ptr @_QFEk.0, align 8, !tbaa !3
  %5 = tail call i1 @_FortranAioInputInteger(ptr %4, ptr %.unpack273, i32 4)
  %6 = tail call i32 @_FortranAioEndIoStatement(ptr %4)
  %7 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 5)
  %.unpack273.1 = load ptr, ptr @_QFEk.0, align 8, !tbaa !3
  %8 = getelementptr i32, ptr %.unpack273.1, i64 1
  %9 = tail call i1 @_FortranAioInputInteger(ptr %7, ptr %8, i32 4)
  %10 = tail call i32 @_FortranAioEndIoStatement(ptr %7)
  %11 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 5)
  %.unpack273.2 = load ptr, ptr @_QFEk.0, align 8, !tbaa !3
  %12 = getelementptr i32, ptr %.unpack273.2, i64 2
  %13 = tail call i1 @_FortranAioInputInteger(ptr %11, ptr %12, i32 4)
  %14 = tail call i32 @_FortranAioEndIoStatement(ptr %11)
  %15 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 5)
  %.unpack273.3 = load ptr, ptr @_QFEk.0, align 8, !tbaa !3
  %16 = getelementptr i32, ptr %.unpack273.3, i64 3
  %17 = tail call i1 @_FortranAioInputInteger(ptr %15, ptr %16, i32 4)
  %18 = tail call i32 @_FortranAioEndIoStatement(ptr %15)
  %19 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 5)
  %.unpack273.4 = load ptr, ptr @_QFEk.0, align 8, !tbaa !3
  %20 = getelementptr i32, ptr %.unpack273.4, i64 4
  %21 = tail call i1 @_FortranAioInputInteger(ptr %19, ptr %20, i32 4)
  %22 = tail call i32 @_FortranAioEndIoStatement(ptr %19)
  %23 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 7)
  %24 = call i1 @_FortranAioInputInteger(ptr %23, ptr nonnull %2, i32 4)
  %25 = call i32 @_FortranAioEndIoStatement(ptr %23)
  %.unpack = load ptr, ptr @_QFEk.0, align 8, !tbaa !3
  %26 = load i32, ptr %.unpack, align 4, !tbaa !7
  %27 = getelementptr i8, ptr %.unpack, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !7
  %29 = call i32 @llvm.smax.i32(i32 %28, i32 %26)
  %30 = getelementptr i8, ptr %.unpack, i64 8
  %31 = load i32, ptr %30, align 4, !tbaa !7
  %32 = call i32 @llvm.smax.i32(i32 %31, i32 %29)
  %33 = getelementptr i8, ptr %.unpack, i64 12
  %34 = load i32, ptr %33, align 4, !tbaa !7
  %35 = call i32 @llvm.smax.i32(i32 %34, i32 %32)
  %36 = getelementptr i8, ptr %.unpack, i64 16
  %37 = load i32, ptr %36, align 4, !tbaa !7
  %38 = call i32 @llvm.smax.i32(i32 %37, i32 %35)
  store ptr %.unpack, ptr %1, align 8, !tbaa !3
  %.fca.1.gep72 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep72, align 8, !tbaa !3
  %.fca.2.gep74 = 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.gep74, align 8, !tbaa !3
  %.fca.3.gep76 = 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.gep76, align 4, !tbaa !3
  %.fca.4.gep78 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep78, align 1, !tbaa !3
  %.fca.5.gep80 = 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.gep80, align 2, !tbaa !3
  %.fca.6.gep82 = 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.gep82, align 1, !tbaa !3
  %.fca.7.0.0.gep84 = 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.gep84, align 8, !tbaa !3
  %.fca.7.0.1.gep86 = 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 5, ptr %.fca.7.0.1.gep86, align 8, !tbaa !3
  %.fca.7.0.2.gep88 = 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 4, ptr %.fca.7.0.2.gep88, align 8, !tbaa !3
  %39 = call i32 @_FortranAMinvalInteger4(ptr nonnull %1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 7, i32 0, ptr null)
  %40 = sub i32 %38, %39
  %41 = load i32, ptr %2, align 4, !tbaa !7
  %42 = icmp sgt i32 %40, %41
  br i1 %42, label %43, label %.lr.ph.i285

43:                                               ; preds = %.lr.ph.i.preheader
  %44 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 8)
  %45 = call i1 @_FortranAioOutputAscii(ptr %44, ptr nonnull @_QQcl.3A28, i64 2)
  %46 = call i32 @_FortranAioEndIoStatement(ptr %44)
  br label %.lr.ph.i285

.lr.ph.i285:                                      ; preds = %.lr.ph.i.preheader, %43
  %.unpack249 = load ptr, ptr @_QFEk.0, align 8, !tbaa !3
  %47 = load i32, ptr %.unpack249, align 4, !tbaa !7
  %48 = getelementptr i8, ptr %.unpack249, i64 4
  %49 = load i32, ptr %48, align 4, !tbaa !7
  %50 = call i32 @llvm.smax.i32(i32 %49, i32 %47)
  %51 = getelementptr i8, ptr %.unpack249, i64 8
  %52 = load i32, ptr %51, align 4, !tbaa !7
  %53 = call i32 @llvm.smax.i32(i32 %52, i32 %50)
  %54 = getelementptr i8, ptr %.unpack249, i64 12
  %55 = load i32, ptr %54, align 4, !tbaa !7
  %56 = call i32 @llvm.smax.i32(i32 %55, i32 %53)
  %57 = getelementptr i8, ptr %.unpack249, i64 16
  %58 = load i32, ptr %57, align 4, !tbaa !7
  %59 = call i32 @llvm.smax.i32(i32 %58, i32 %56)
  store ptr %.unpack249, ptr %0, align 8, !tbaa !3
  %.fca.1.gep172 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep172, align 8, !tbaa !3
  %.fca.2.gep174 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep174, align 8, !tbaa !3
  %.fca.3.gep176 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep176, align 4, !tbaa !3
  %.fca.4.gep178 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep178, align 1, !tbaa !3
  %.fca.5.gep180 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep180, align 2, !tbaa !3
  %.fca.6.gep182 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep182, align 1, !tbaa !3
  %.fca.7.0.0.gep184 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep184, align 8, !tbaa !3
  %.fca.7.0.1.gep186 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 1
  store i64 5, ptr %.fca.7.0.1.gep186, align 8, !tbaa !3
  %.fca.7.0.2.gep188 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep188, align 8, !tbaa !3
  %60 = call i32 @_FortranAMinvalInteger4(ptr nonnull %0, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 8, i32 0, ptr null)
  %61 = sub i32 %59, %60
  %62 = load i32, ptr %2, align 4, !tbaa !7
  %.not = icmp sgt i32 %61, %62
  br i1 %.not, label %67, label %63

63:                                               ; preds = %.lr.ph.i285
  %64 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.7d85554cd50aeeee899dedd03a497de4, i32 9)
  %65 = call i1 @_FortranAioOutputAscii(ptr %64, ptr nonnull @_QQcl.59617921, i64 4)
  %66 = call i32 @_FortranAioEndIoStatement(ptr %64)
  br label %67

67:                                               ; preds = %63, %.lr.ph.i285
  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 i32 @_FortranAMinvalInteger4(ptr, ptr, i32, i32, 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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #1

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { mustprogress 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}
