program main
  implicit none
  
  double precision ::a,b
  
  read(*,*)a
  read(*,*)b
  if ((a - b) > 0.5) then
    write(*,'(A)')"GREATER"
    stop
  else if ((a - b) < -0.5) then
    write(*,'(A)')"LESS"
    stop
  end if
  write(*,'(A)')"EQUAL"
end program main

; 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.9e4815f142f5ca773c7dbc624ab560db = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7360/source.f\00"
@_QQcl.284129 = linkonce constant [3 x i8] c"(A)"
@_QQcl.47524541544552 = linkonce constant [7 x i8] c"GREATER"
@_QQcl.4C455353 = linkonce constant [4 x i8] c"LESS"
@_QQcl.455155414C = linkonce constant [5 x i8] c"EQUAL"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.9e4815f142f5ca773c7dbc624ab560db, i32 6)
  %4 = call i1 @_FortranAioInputReal64(ptr %3, ptr nonnull %1)
  %5 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %6 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.9e4815f142f5ca773c7dbc624ab560db, i32 7)
  %7 = call i1 @_FortranAioInputReal64(ptr %6, ptr nonnull %2)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %6)
  %9 = load double, ptr %1, align 8, !tbaa !3
  %10 = load double, ptr %2, align 8, !tbaa !3
  %11 = fsub contract double %9, %10
  %12 = fcmp ogt double %11, 5.000000e-01
  br i1 %12, label %13, label %18

13:                                               ; preds = %0
  %14 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.9e4815f142f5ca773c7dbc624ab560db, i32 9)
  %15 = call i1 @_FortranAioOutputAscii(ptr %14, ptr nonnull @_QQcl.47524541544552, i64 7)
  %16 = call i32 @_FortranAioEndIoStatement(ptr %14)
  %17 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

18:                                               ; preds = %0
  %19 = fcmp olt double %11, -5.000000e-01
  br i1 %19, label %20, label %25

20:                                               ; preds = %18
  %21 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.9e4815f142f5ca773c7dbc624ab560db, i32 12)
  %22 = call i1 @_FortranAioOutputAscii(ptr %21, ptr nonnull @_QQcl.4C455353, i64 4)
  %23 = call i32 @_FortranAioEndIoStatement(ptr %21)
  %24 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

25:                                               ; preds = %18
  %26 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.9e4815f142f5ca773c7dbc624ab560db, i32 15)
  %27 = call i1 @_FortranAioOutputAscii(ptr %26, ptr nonnull @_QQcl.455155414C, i64 5)
  %28 = call i32 @_FortranAioEndIoStatement(ptr %26)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputReal64(ptr, ptr) 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

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