implicit none
integer (8):: a,b,c
character(1) :: d,h
read(*,*) d,h

if (d==h ) then
    write(*,*) "H"
else
    write(*,*) "D"
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.c17776cc61f36f71b8b3f16cf11ef766 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7442/source.f\00"
@_QQcl.48 = linkonce constant [1 x i8] c"H"
@_QQcl.44 = linkonce constant [1 x i8] c"D"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [1 x i8], align 1
  %2 = alloca [1 x i8], align 1
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.c17776cc61f36f71b8b3f16cf11ef766, i32 4)
  %4 = call i1 @_FortranAioInputAscii(ptr %3, ptr nonnull %1, i64 1)
  %5 = call i1 @_FortranAioInputAscii(ptr %3, ptr nonnull %2, i64 1)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull %2, i64 1, i64 1)
  %8 = icmp eq i32 %7, 0
  br i1 %8, label %9, label %12

9:                                                ; preds = %0
  %10 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.c17776cc61f36f71b8b3f16cf11ef766, i32 7)
  %11 = call i1 @_FortranAioOutputAscii(ptr %10, ptr nonnull @_QQcl.48, i64 1)
  br label %15

12:                                               ; preds = %0
  %13 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.c17776cc61f36f71b8b3f16cf11ef766, i32 9)
  %14 = call i1 @_FortranAioOutputAscii(ptr %13, ptr nonnull @_QQcl.44, i64 1)
  br label %15

15:                                               ; preds = %9, %12
  %.sink = phi ptr [ %10, %9 ], [ %13, %12 ]
  %16 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  ret void
}

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

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

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare i32 @_FortranACharacterCompareScalar1(ptr, ptr, i64, i64) local_unnamed_addr

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

declare i1 @_FortranAioOutputAscii(ptr, ptr, i64) 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}
