program aaa
implicit none

character(1),dimension(4) :: g=['A','C','G','T']
character(1) :: s

read*, s

if(s==g(1)) write(*,'(a1)') g(4)
if(s==g(2)) write(*,'(a1)') g(3)
if(s==g(3)) write(*,'(a1)') g(2)
if(s==g(4)) write(*,'(a1)') g(1)

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

@_QFEg = internal global [4 x [1 x i8]] [[1 x i8] c"A", [1 x i8] c"C", [1 x i8] c"G", [1 x i8] c"T"]
@_QQcl.1073d5e057275b438e70a3e6ba4ac7e8 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4634/source.f\00"
@_QQcl.28613129 = linkonce constant [4 x i8] c"(a1)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

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

7:                                                ; preds = %0
  %8 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28613129, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.1073d5e057275b438e70a3e6ba4ac7e8, i32 9)
  %9 = call i1 @_FortranAioOutputAscii(ptr %8, ptr nonnull getelementptr inbounds ([4 x [1 x i8]], ptr @_QFEg, i64 0, i64 3), i64 1)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %8)
  br label %11

11:                                               ; preds = %7, %0
  %12 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull getelementptr inbounds ([4 x [1 x i8]], ptr @_QFEg, i64 0, i64 1), i64 1, i64 1)
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %18

14:                                               ; preds = %11
  %15 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28613129, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.1073d5e057275b438e70a3e6ba4ac7e8, i32 10)
  %16 = call i1 @_FortranAioOutputAscii(ptr %15, ptr nonnull getelementptr inbounds ([4 x [1 x i8]], ptr @_QFEg, i64 0, i64 2), i64 1)
  %17 = call i32 @_FortranAioEndIoStatement(ptr %15)
  br label %18

18:                                               ; preds = %14, %11
  %19 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull getelementptr inbounds ([4 x [1 x i8]], ptr @_QFEg, i64 0, i64 2), i64 1, i64 1)
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %25

21:                                               ; preds = %18
  %22 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28613129, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.1073d5e057275b438e70a3e6ba4ac7e8, i32 11)
  %23 = call i1 @_FortranAioOutputAscii(ptr %22, ptr nonnull getelementptr inbounds ([4 x [1 x i8]], ptr @_QFEg, i64 0, i64 1), i64 1)
  %24 = call i32 @_FortranAioEndIoStatement(ptr %22)
  br label %25

25:                                               ; preds = %21, %18
  %26 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull getelementptr inbounds ([4 x [1 x i8]], ptr @_QFEg, i64 0, i64 3), i64 1, i64 1)
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %32

28:                                               ; preds = %25
  %29 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28613129, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.1073d5e057275b438e70a3e6ba4ac7e8, i32 12)
  %30 = call i1 @_FortranAioOutputAscii(ptr %29, ptr nonnull @_QFEg, i64 1)
  %31 = call i32 @_FortranAioEndIoStatement(ptr %29)
  br label %32

32:                                               ; preds = %28, %25
  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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, 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}
