character(10)s
read(*,'(A)')s
write(*,'(A)')'2018'//s(5:10)
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.284129 = linkonce constant [3 x i8] c"(A)"
@_QQcl.491b511f819a7b833dc4dca730a88afe = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6416/source.f\00"
@_QQcl.32303138 = linkonce local_unnamed_addr constant [4 x i8] c"2018"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [10 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalFormattedInput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.491b511f819a7b833dc4dca730a88afe, i32 2)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 10)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.491b511f819a7b833dc4dca730a88afe, i32 3)
  %6 = alloca [10 x i8], align 4
  %7 = load i32, ptr @_QQcl.32303138, align 1
  store i32 %7, ptr %6, align 4
  %uglygep = getelementptr inbounds i8, ptr %6, i64 4
  %uglygep1 = getelementptr inbounds i8, ptr %1, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(6) %uglygep, ptr noundef nonnull align 1 dereferenceable(6) %uglygep1, i64 6, i1 false), !tbaa !3
  %8 = call i1 @_FortranAioOutputAscii(ptr %5, ptr nonnull %6, i64 10)
  %9 = call i32 @_FortranAioEndIoStatement(ptr %5)
  ret void
}

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

declare i1 @_FortranAioInputAscii(ptr, ptr, i64) 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }

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