program sample
    implicit none
  
    integer(8) :: i,j,m,n,a,b,c,d,e,k
    
    integer(8),allocatable :: x(:),y(:)
  
    
    read(*,*) a
    read(*,*) b
    read(*,*) c
    read(*,*) d
    read(*,*) e
    read(*,*) k
    if (e-a>k)then
        write(*,*) ':('
    else
        write(*,*) 'Yay!'
    end if

  
    stop
end program sample
  


; 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"

@_QQcl.058b0ad4d4ac4005f22a8be335d3bc67 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4536/source.f\00"
@_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: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.058b0ad4d4ac4005f22a8be335d3bc67, i32 9)
  %8 = call i1 @_FortranAioInputInteger(ptr %7, ptr nonnull %1, i32 8)
  %9 = call i32 @_FortranAioEndIoStatement(ptr %7)
  %10 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.058b0ad4d4ac4005f22a8be335d3bc67, i32 10)
  %11 = call i1 @_FortranAioInputInteger(ptr %10, ptr nonnull %2, i32 8)
  %12 = call i32 @_FortranAioEndIoStatement(ptr %10)
  %13 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.058b0ad4d4ac4005f22a8be335d3bc67, i32 11)
  %14 = call i1 @_FortranAioInputInteger(ptr %13, ptr nonnull %3, i32 8)
  %15 = call i32 @_FortranAioEndIoStatement(ptr %13)
  %16 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.058b0ad4d4ac4005f22a8be335d3bc67, i32 12)
  %17 = call i1 @_FortranAioInputInteger(ptr %16, ptr nonnull %4, i32 8)
  %18 = call i32 @_FortranAioEndIoStatement(ptr %16)
  %19 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.058b0ad4d4ac4005f22a8be335d3bc67, i32 13)
  %20 = call i1 @_FortranAioInputInteger(ptr %19, ptr nonnull %5, i32 8)
  %21 = call i32 @_FortranAioEndIoStatement(ptr %19)
  %22 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.058b0ad4d4ac4005f22a8be335d3bc67, i32 14)
  %23 = call i1 @_FortranAioInputInteger(ptr %22, ptr nonnull %6, i32 8)
  %24 = call i32 @_FortranAioEndIoStatement(ptr %22)
  %25 = load i64, ptr %5, align 8, !tbaa !3
  %26 = load i64, ptr %1, align 8, !tbaa !3
  %27 = sub i64 %25, %26
  %28 = load i64, ptr %6, align 8, !tbaa !3
  %29 = icmp sgt i64 %27, %28
  %. = select i1 %29, i32 16, i32 18
  %.3 = select i1 %29, i64 2, i64 4
  %_QQcl.3A28._QQcl.59617921 = select i1 %29, ptr @_QQcl.3A28, ptr @_QQcl.59617921
  %30 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.058b0ad4d4ac4005f22a8be335d3bc67, i32 %.)
  %31 = call i1 @_FortranAioOutputAscii(ptr %30, ptr nonnull %_QQcl.3A28._QQcl.59617921, i64 %.3)
  %32 = call i32 @_FortranAioEndIoStatement(ptr %30)
  %33 = 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 @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

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

declare {} @_FortranAStopStatement(i32, i1, i1) local_unnamed_addr

attributes #0 = { noreturn }

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