character(100000) s
character(26):: abc = 'abcdefghijklmnopqrstuvwxyz'
integer i
read *, s
i = verify(abc, s)
if (i == 0) then
  print '(a)', 'None'
else
  print '(a)', abc(i:i)
end if
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"

@_QFEabc = internal global [26 x i8] c"abcdefghijklmnopqrstuvwxyz"
@_QFEs = internal global [100000 x i8] undef
@_QQcl.5bb4d3e89592c808e002296ff0d224b8 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6991/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_QQcl.4E6F6E65 = linkonce constant [4 x i8] c"None"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.5bb4d3e89592c808e002296ff0d224b8, i32 4)
  %2 = tail call i1 @_FortranAioInputAscii(ptr %1, ptr nonnull @_QFEs, i64 100000)
  %3 = tail call i32 @_FortranAioEndIoStatement(ptr %1)
  %4 = tail call i64 @_FortranAVerify1(ptr nonnull @_QFEabc, i64 26, ptr nonnull @_QFEs, i64 100000, i1 false)
  %5 = and i64 %4, 4294967295
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %7, label %10

7:                                                ; preds = %0
  %8 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.5bb4d3e89592c808e002296ff0d224b8, i32 7)
  %9 = tail call i1 @_FortranAioOutputAscii(ptr %8, ptr nonnull @_QQcl.4E6F6E65, i64 4)
  br label %16

10:                                               ; preds = %0
  %11 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.5bb4d3e89592c808e002296ff0d224b8, i32 9)
  %sext = shl i64 %4, 32
  %12 = ashr exact i64 %sext, 32
  %13 = add nsw i64 %12, -1
  %14 = getelementptr [26 x [1 x i8]], ptr @_QFEabc, i64 0, i64 %13
  %15 = tail call i1 @_FortranAioOutputAscii(ptr %11, ptr %14, i64 1)
  br label %16

16:                                               ; preds = %7, %10
  %.sink = phi ptr [ %8, %7 ], [ %11, %10 ]
  %17 = tail 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 i64 @_FortranAVerify1(ptr, i64, ptr, i64, i1) 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}
