CHARACTER(10) H
INTEGER ANS,CNT
READ*,H
CNT=0
ANS=0
DO I=1,10
 IF(H(I:I)=="A".OR.H(I:I)=="G".OR.H(I:I)=="C".OR.H(I:I)=="T")THEN
  CNT=CNT+1
 ELSE
  CNT=0
 ENDIF
 ANS=MAX(ANS,CNT)
END DO
PRINT"(I0)",ANS
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.2935cd2355157715d1e6f50b62abd9f0 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4646/source.f\00"
@_QQcl.41 = linkonce constant [1 x i8] c"A"
@_QQcl.47 = linkonce constant [1 x i8] c"G"
@_QQcl.43 = linkonce constant [1 x i8] c"C"
@_QQcl.54 = linkonce constant [1 x i8] c"T"
@_QQcl.28493029 = linkonce constant [4 x i8] c"(I0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [10 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.2935cd2355157715d1e6f50b62abd9f0, i32 3)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 10)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  br label %5

5:                                                ; preds = %0, %5
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next, %5 ]
  %.012 = phi i32 [ 0, %0 ], [ %.1, %5 ]
  %.0911 = phi i32 [ 0, %0 ], [ %20, %5 ]
  %6 = add nsw i64 %indvars.iv, -1
  %7 = getelementptr [10 x [1 x i8]], ptr %1, i64 0, i64 %6
  %8 = call i32 @_FortranACharacterCompareScalar1(ptr %7, ptr nonnull @_QQcl.41, i64 1, i64 1)
  %9 = icmp eq i32 %8, 0
  %10 = call i32 @_FortranACharacterCompareScalar1(ptr %7, ptr nonnull @_QQcl.47, i64 1, i64 1)
  %11 = icmp eq i32 %10, 0
  %12 = or i1 %9, %11
  %13 = call i32 @_FortranACharacterCompareScalar1(ptr %7, ptr nonnull @_QQcl.43, i64 1, i64 1)
  %14 = icmp eq i32 %13, 0
  %15 = or i1 %12, %14
  %16 = call i32 @_FortranACharacterCompareScalar1(ptr %7, ptr nonnull @_QQcl.54, i64 1, i64 1)
  %17 = icmp eq i32 %16, 0
  %18 = or i1 %15, %17
  %19 = add i32 %.012, 1
  %.1 = select i1 %18, i32 %19, i32 0
  %20 = call i32 @llvm.smax.i32(i32 %.0911, i32 %.1)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 11
  br i1 %exitcond.not, label %21, label %5

21:                                               ; preds = %5
  %22 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28493029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.2935cd2355157715d1e6f50b62abd9f0, i32 14)
  %23 = call i1 @_FortranAioOutputInteger32(ptr %22, i32 %20)
  %24 = call i32 @_FortranAioEndIoStatement(ptr %22)
  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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #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}
