integer a,b,c,d
read*,a,b,c,d
if(abs(a-c)>d.and.(abs(a-b)>d.or.abs(b-c)>d))then
	print"(A)","No"
else
	print"(A)","Yes"
endif
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"

@_QQcl.20f547f1a8bfd22b5590196227ba6ffe = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5966/source.f\00"
@_QQcl.284129 = linkonce constant [3 x i8] c"(A)"
@_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

define void @_QQmain() local_unnamed_addr {
  %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.20f547f1a8bfd22b5590196227ba6ffe, i32 2)
  %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)
  %11 = load i32, ptr %1, align 4, !tbaa !3
  %12 = load i32, ptr %3, align 4, !tbaa !3
  %13 = sub i32 %11, %12
  %14 = call i32 @llvm.abs.i32(i32 %13, i1 false)
  %15 = load i32, ptr %4, align 4, !tbaa !3
  %16 = icmp sgt i32 %14, %15
  %17 = load i32, ptr %2, align 4, !tbaa !3
  %18 = sub i32 %11, %17
  %19 = call i32 @llvm.abs.i32(i32 %18, i1 false)
  %20 = icmp sgt i32 %19, %15
  %21 = sub i32 %17, %12
  %22 = call i32 @llvm.abs.i32(i32 %21, i1 false)
  %23 = icmp sgt i32 %22, %15
  %24 = or i1 %20, %23
  %25 = and i1 %16, %24
  br i1 %25, label %26, label %29

26:                                               ; preds = %0
  %27 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.20f547f1a8bfd22b5590196227ba6ffe, i32 4)
  %28 = call i1 @_FortranAioOutputAscii(ptr %27, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %32

29:                                               ; preds = %0
  %30 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.20f547f1a8bfd22b5590196227ba6ffe, i32 6)
  %31 = call i1 @_FortranAioOutputAscii(ptr %30, ptr nonnull @_QQcl.596573, i64 3)
  br label %32

32:                                               ; preds = %26, %29
  %.sink = phi ptr [ %27, %26 ], [ %30, %29 ]
  %33 = 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 ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, 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 i32 @llvm.abs.i32(i32, i1 immarg) #0

attributes #0 = { 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"}
