program sample
    implicit none
    integer(8) ::a, b,c,i,j,m,n,k,a1,b1,c1
    integer(8)::x,y
    
    read(*,*) x,y
   
    a=2*x-y/2
    b=y/2-x
    if (mod(y,2)==1)then
        write(*,*)'No'
        stop
    end if
    if (b<0 .or. a<0)then
        write(*,*)'No'
        stop
    
    end if
    write(*,*)'Yes'

    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.8f73b00e8b5a77bd735fb72e6d7382d9 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_1190/source.f\00"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_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 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.8f73b00e8b5a77bd735fb72e6d7382d9, i32 6)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 8)
  %5 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 8)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = load i64, ptr %2, align 8, !tbaa !3
  %8 = and i64 %7, -9223372036854775807
  %9 = icmp eq i64 %8, 1
  br i1 %9, label %10, label %15

10:                                               ; preds = %0
  %11 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.8f73b00e8b5a77bd735fb72e6d7382d9, i32 11)
  %12 = call i1 @_FortranAioOutputAscii(ptr %11, ptr nonnull @_QQcl.4E6F, i64 2)
  %13 = call i32 @_FortranAioEndIoStatement(ptr %11)
  %14 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

15:                                               ; preds = %0
  %16 = sdiv i64 %7, 2
  %17 = load i64, ptr %1, align 8, !tbaa !3
  %18 = sub i64 %16, %17
  %19 = shl i64 %17, 1
  %20 = sub i64 %19, %16
  %21 = or i64 %20, %18
  %.not = icmp sgt i64 %21, -1
  br i1 %.not, label %27, label %22

22:                                               ; preds = %15
  %23 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.8f73b00e8b5a77bd735fb72e6d7382d9, i32 15)
  %24 = call i1 @_FortranAioOutputAscii(ptr %23, ptr nonnull @_QQcl.4E6F, i64 2)
  %25 = call i32 @_FortranAioEndIoStatement(ptr %23)
  %26 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

27:                                               ; preds = %15
  %28 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.8f73b00e8b5a77bd735fb72e6d7382d9, i32 19)
  %29 = call i1 @_FortranAioOutputAscii(ptr %28, ptr nonnull @_QQcl.596573, i64 3)
  %30 = call i32 @_FortranAioEndIoStatement(ptr %28)
  %31 = 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"}
