program r20926a
 
implicit none
character(len=15) :: a
integer :: n

read *, n

if(n==1) then
 print *, 'ACL'
else if(n==2) then
 print *, 'ACLACL'
else if(n==3) then
 print *, 'ACLACLACL'
else if(n==4) then
 print *, 'ACLACLACLACL'
else if(n==5) then
 print *, 'ACLACLACLACLACL'
end if

end program r20926a
; 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.09bee1621569d57e9dcb2e8357c24b28 = linkonce constant [72 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_603/source.f\00"
@_QQcl.41434C = linkonce constant [3 x i8] c"ACL"
@_QQcl.41434C41434C = linkonce constant [6 x i8] c"ACLACL"
@_QQcl.41434C41434C41434C = linkonce constant [9 x i8] c"ACLACLACL"
@_QQcl.41434C41434C41434C41434C = linkonce constant [12 x i8] c"ACLACLACLACL"
@_QQcl.41434C41434C41434C41434C41434C = linkonce constant [15 x i8] c"ACLACLACLACLACL"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.09bee1621569d57e9dcb2e8357c24b28, i32 7)
  %3 = call i1 @_FortranAioInputInteger(ptr %2, ptr nonnull %1, i32 4)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = load i32, ptr %1, align 4, !tbaa !3
  switch i32 %5, label %22 [
    i32 1, label %6
    i32 2, label %9
    i32 3, label %12
    i32 4, label %15
    i32 5, label %18
  ]

6:                                                ; preds = %0
  %7 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.09bee1621569d57e9dcb2e8357c24b28, i32 10)
  %8 = call i1 @_FortranAioOutputAscii(ptr %7, ptr nonnull @_QQcl.41434C, i64 3)
  br label %.sink.split

9:                                                ; preds = %0
  %10 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.09bee1621569d57e9dcb2e8357c24b28, i32 12)
  %11 = call i1 @_FortranAioOutputAscii(ptr %10, ptr nonnull @_QQcl.41434C41434C, i64 6)
  br label %.sink.split

12:                                               ; preds = %0
  %13 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.09bee1621569d57e9dcb2e8357c24b28, i32 14)
  %14 = call i1 @_FortranAioOutputAscii(ptr %13, ptr nonnull @_QQcl.41434C41434C41434C, i64 9)
  br label %.sink.split

15:                                               ; preds = %0
  %16 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.09bee1621569d57e9dcb2e8357c24b28, i32 16)
  %17 = call i1 @_FortranAioOutputAscii(ptr %16, ptr nonnull @_QQcl.41434C41434C41434C41434C, i64 12)
  br label %.sink.split

18:                                               ; preds = %0
  %19 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.09bee1621569d57e9dcb2e8357c24b28, i32 18)
  %20 = call i1 @_FortranAioOutputAscii(ptr %19, ptr nonnull @_QQcl.41434C41434C41434C41434C41434C, i64 15)
  br label %.sink.split

.sink.split:                                      ; preds = %18, %15, %12, %9, %6
  %.sink = phi ptr [ %7, %6 ], [ %10, %9 ], [ %13, %12 ], [ %16, %15 ], [ %19, %18 ]
  %21 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  br label %22

22:                                               ; preds = %.sink.split, %0
  ret void
}

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

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) 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}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
