integer a
character s*5
read*,s
a=0
do i=1,len_trim(s)-1
	if(s(i:i+1)=="AC") a=i
end do
if(a>0) then
	print*,"Yes"
else
	print*,"No"
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"

@_QQcl.30be0d5023b0fb3fdd22e1b948ed245b = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6793/source.f\00"
@_QQcl.4143 = linkonce constant [2 x i8] c"AC"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [5 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.30be0d5023b0fb3fdd22e1b948ed245b, i32 3)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 5)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = getelementptr inbounds [5 x [1 x i8]], ptr %1, i64 0, i64 4
  %6 = load i8, ptr %5, align 1, !tbaa !3
  %7 = icmp eq i8 %6, 32
  br i1 %7, label %8, label %23

8:                                                ; preds = %0
  %9 = getelementptr inbounds [5 x [1 x i8]], ptr %1, i64 0, i64 3
  %10 = load i8, ptr %9, align 1, !tbaa !3
  %11 = icmp eq i8 %10, 32
  br i1 %11, label %12, label %23

12:                                               ; preds = %8
  %13 = getelementptr inbounds [5 x [1 x i8]], ptr %1, i64 0, i64 2
  %14 = load i8, ptr %13, align 1, !tbaa !3
  %15 = icmp eq i8 %14, 32
  br i1 %15, label %16, label %23

16:                                               ; preds = %12
  %17 = getelementptr inbounds [5 x [1 x i8]], ptr %1, i64 0, i64 1
  %18 = load i8, ptr %17, align 1, !tbaa !3
  %19 = icmp eq i8 %18, 32
  br i1 %19, label %20, label %23

20:                                               ; preds = %16
  %21 = load i8, ptr %1, align 1, !tbaa !3
  %22 = icmp eq i8 %21, 32
  br label %23

23:                                               ; preds = %20, %16, %12, %8, %0
  %.lcssa15 = phi i64 [ 4, %0 ], [ 3, %8 ], [ 2, %12 ], [ 1, %16 ], [ 0, %20 ]
  %.lcssa = phi i1 [ %7, %0 ], [ %11, %8 ], [ %15, %12 ], [ %19, %16 ], [ %22, %20 ]
  %spec.select6 = select i1 %.lcssa, i64 -1, i64 %.lcssa15
  %24 = icmp sgt i64 %spec.select6, 0
  br i1 %24, label %select.unfold, label %select.unfold._crit_edge.thread

select.unfold:                                    ; preds = %23, %select.unfold
  %indvars.iv = phi i64 [ %indvars.iv.next, %select.unfold ], [ 1, %23 ]
  %.08 = phi i32 [ %spec.select, %select.unfold ], [ 0, %23 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %sext11 = shl i64 %indvars.iv.next, 32
  %25 = ashr exact i64 %sext11, 32
  %26 = add nsw i64 %indvars.iv, -1
  %27 = getelementptr [5 x [1 x i8]], ptr %1, i64 0, i64 %26
  %28 = sub nsw i64 %25, %indvars.iv
  %29 = call i64 @llvm.smax.i64(i64 %28, i64 -1)
  %30 = add nsw i64 %29, 1
  %31 = call i32 @_FortranACharacterCompareScalar1(ptr %27, ptr nonnull @_QQcl.4143, i64 %30, i64 2)
  %32 = icmp eq i32 %31, 0
  %33 = trunc i64 %indvars.iv to i32
  %spec.select = select i1 %32, i32 %33, i32 %.08
  %exitcond.not = icmp eq i64 %indvars.iv, %spec.select6
  br i1 %exitcond.not, label %select.unfold._crit_edge, label %select.unfold

select.unfold._crit_edge:                         ; preds = %select.unfold
  %34 = icmp sgt i32 %spec.select, 0
  br i1 %34, label %35, label %select.unfold._crit_edge.thread

35:                                               ; preds = %select.unfold._crit_edge
  %36 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.30be0d5023b0fb3fdd22e1b948ed245b, i32 9)
  %37 = call i1 @_FortranAioOutputAscii(ptr %36, ptr nonnull @_QQcl.596573, i64 3)
  br label %40

select.unfold._crit_edge.thread:                  ; preds = %23, %select.unfold._crit_edge
  %38 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.30be0d5023b0fb3fdd22e1b948ed245b, i32 11)
  %39 = call i1 @_FortranAioOutputAscii(ptr %38, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %40

40:                                               ; preds = %35, %select.unfold._crit_edge.thread
  %.sink = phi ptr [ %36, %35 ], [ %38, %select.unfold._crit_edge.thread ]
  %41 = 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 i32 @_FortranACharacterCompareScalar1(ptr, ptr, i64, i64) local_unnamed_addr

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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