program main
  implicit none
  character(100) :: s, t
  read *, s, t
  print "(a)", trim(t) // trim(s)
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"

@_QFEs = internal global [100 x i8] undef
@_QFEt = internal global [100 x i8] undef
@_QQcl.04a4db07b9409adb6b75858cf6c802bf = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2703/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #0

define void @_QQmain() local_unnamed_addr {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %2 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %3 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %4 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.04a4db07b9409adb6b75858cf6c802bf, i32 4)
  %6 = tail call i1 @_FortranAioInputAscii(ptr %5, ptr nonnull @_QFEs, i64 100)
  %7 = tail call i1 @_FortranAioInputAscii(ptr %5, ptr nonnull @_QFEt, i64 100)
  %8 = tail call i32 @_FortranAioEndIoStatement(ptr %5)
  %9 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.04a4db07b9409adb6b75858cf6c802bf, i32 5)
  store ptr @_QFEt, ptr %2, align 8, !tbaa !3
  %.fca.1.gep44 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 1
  store i64 100, ptr %.fca.1.gep44, align 8, !tbaa !3
  %.fca.2.gep45 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep45, align 8, !tbaa !3
  %.fca.3.gep46 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep46, align 4, !tbaa !3
  %.fca.4.gep47 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep47, align 1, !tbaa !3
  %.fca.5.gep48 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep48, align 2, !tbaa !3
  %.fca.6.gep49 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep49, align 1, !tbaa !3
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 1
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !3
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep, align 4, !tbaa !3
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep, align 1, !tbaa !3
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep, align 2, !tbaa !3
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !3
  %10 = call {} @_FortranATrim(ptr nonnull %4, ptr nonnull %2, ptr nonnull @_QQcl.04a4db07b9409adb6b75858cf6c802bf, i32 5)
  %.fca.0.load = load ptr, ptr %4, align 8, !tbaa !3
  %.fca.1.load = load i64, ptr %.fca.1.gep, align 8, !tbaa !3
  store ptr @_QFEs, ptr %1, align 8, !tbaa !3
  %.fca.1.gep108 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 1
  store i64 100, ptr %.fca.1.gep108, align 8, !tbaa !3
  %.fca.2.gep109 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep109, align 8, !tbaa !3
  %.fca.3.gep110 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep110, align 4, !tbaa !3
  %.fca.4.gep111 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep111, align 1, !tbaa !3
  %.fca.5.gep112 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep112, align 2, !tbaa !3
  %.fca.6.gep113 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep113, align 1, !tbaa !3
  %.fca.1.gep11 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 1
  %.fca.2.gep13 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  store i32 20180515, ptr %.fca.2.gep13, align 8, !tbaa !3
  %.fca.3.gep15 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep15, align 4, !tbaa !3
  %.fca.4.gep17 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep17, align 1, !tbaa !3
  %.fca.5.gep19 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep19, align 2, !tbaa !3
  %.fca.6.gep21 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep21, align 1, !tbaa !3
  %11 = call {} @_FortranATrim(ptr nonnull %3, ptr nonnull %1, ptr nonnull @_QQcl.04a4db07b9409adb6b75858cf6c802bf, i32 5)
  %.fca.0.load23 = load ptr, ptr %3, align 8, !tbaa !3
  %.fca.0.load23121 = ptrtoint ptr %.fca.0.load23 to i64
  %.fca.1.load26 = load i64, ptr %.fca.1.gep11, align 8, !tbaa !3
  %12 = add i64 %.fca.1.load26, %.fca.1.load
  %13 = alloca i8, i64 %12, align 1
  %14 = ptrtoint ptr %13 to i64
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %13, ptr align 1 %.fca.0.load, i64 %.fca.1.load, i1 false)
  %15 = icmp sgt i64 %.fca.1.load26, 0
  br i1 %15, label %iter.check, label %._crit_edge

iter.check:                                       ; preds = %0
  %min.iters.check = icmp ult i64 %.fca.1.load26, 8
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %16 = add i64 %.fca.1.load, %14
  %17 = sub i64 %16, %.fca.0.load23121
  %diff.check = icmp ult i64 %17, 32
  br i1 %diff.check, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.memcheck
  %min.iters.check122 = icmp ult i64 %.fca.1.load26, 32
  br i1 %min.iters.check122, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %.fca.1.load26, -32
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %.fca.1.load, %index
  %18 = getelementptr [1 x i8], ptr %.fca.0.load23, i64 %index
  %wide.load = load <16 x i8>, ptr %18, align 1, !tbaa !7
  %19 = getelementptr i8, ptr %18, i64 16
  %wide.load123 = load <16 x i8>, ptr %19, align 1, !tbaa !7
  %20 = getelementptr [1 x i8], ptr %13, i64 %offset.idx
  store <16 x i8> %wide.load, ptr %20, align 1, !tbaa !7
  %21 = getelementptr i8, ptr %20, i64 16
  store <16 x i8> %wide.load123, ptr %21, align 1, !tbaa !7
  %index.next = add nuw i64 %index, 32
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.fca.1.load26, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end128 = add i64 %.fca.1.load, %n.vec
  %ind.end126 = and i64 %.fca.1.load26, 31
  %n.vec.remaining = and i64 %.fca.1.load26, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec125 = and i64 %.fca.1.load26, -8
  %ind.end = and i64 %.fca.1.load26, 7
  %ind.end127 = add i64 %.fca.1.load, %n.vec125
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index131 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next134, %vec.epilog.vector.body ]
  %offset.idx132 = add i64 %.fca.1.load, %index131
  %23 = getelementptr [1 x i8], ptr %.fca.0.load23, i64 %index131
  %wide.load133 = load <8 x i8>, ptr %23, align 1, !tbaa !7
  %24 = getelementptr [1 x i8], ptr %13, i64 %offset.idx132
  store <8 x i8> %wide.load133, ptr %24, align 1, !tbaa !7
  %index.next134 = add nuw i64 %index131, 8
  %25 = icmp eq i64 %index.next134, %n.vec125
  br i1 %25, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !12

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n130 = icmp eq i64 %.fca.1.load26, %n.vec125
  br i1 %cmp.n130, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vector.memcheck, %iter.check, %vec.epilog.iter.check, %vec.epilog.middle.block
  %.ph = phi i64 [ %.fca.1.load26, %iter.check ], [ %.fca.1.load26, %vector.memcheck ], [ %ind.end126, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.ph135 = phi i64 [ %.fca.1.load, %iter.check ], [ %.fca.1.load, %vector.memcheck ], [ %ind.end128, %vec.epilog.iter.check ], [ %ind.end127, %vec.epilog.middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %26 = phi i64 [ %32, %.lr.ph ], [ %.ph, %.lr.ph.preheader ]
  %27 = phi i64 [ %31, %.lr.ph ], [ %.ph135, %.lr.ph.preheader ]
  %28 = sub i64 %27, %.fca.1.load
  %29 = getelementptr [1 x i8], ptr %.fca.0.load23, i64 %28
  %.unpack = load i8, ptr %29, align 1, !tbaa !7
  %30 = getelementptr [1 x i8], ptr %13, i64 %27
  store i8 %.unpack, ptr %30, align 1, !tbaa !7
  %31 = add i64 %27, 1
  %32 = add nsw i64 %26, -1
  %33 = icmp ugt i64 %26, 1
  br i1 %33, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %vec.epilog.middle.block, %0
  %34 = call i1 @_FortranAioOutputAscii(ptr %9, ptr nonnull %13, i64 %12)
  call void @free(ptr %.fca.0.load23)
  call void @free(ptr %.fca.0.load)
  %35 = call i32 @_FortranAioEndIoStatement(ptr %9)
  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 ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

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

declare {} @_FortranATrim(ptr, ptr, ptr, i32) local_unnamed_addr

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"descriptor member", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any data access", !5, i64 0}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.isvectorized", i32 1}
!11 = !{!"llvm.loop.unroll.runtime.disable"}
!12 = distinct !{!12, !10, !11}
!13 = distinct !{!13, !10}
