program st_and_bus
    character(3) a
    read *, a
    if(index(a,'A') .ge. 1 .and. index(a,'B') .ge. 1)then
        print *, 'Yes'
    else
        print *, 'No'
    end if
end program
; 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.54334f2da67f0369870a9254e714573e = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2153/source.f\00"
@_QQcl.41 = linkonce constant [1 x i8] c"A"
@_QQcl.42 = linkonce constant [1 x i8] c"B"
@_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 [3 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.54334f2da67f0369870a9254e714573e, i32 3)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 3)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = call i64 @_FortranAIndex1(ptr nonnull %1, i64 3, ptr nonnull @_QQcl.41, i64 1, i1 false)
  %6 = trunc i64 %5 to i32
  %7 = icmp sgt i32 %6, 0
  %8 = call i64 @_FortranAIndex1(ptr nonnull %1, i64 3, ptr nonnull @_QQcl.42, i64 1, i1 false)
  %9 = trunc i64 %8 to i32
  %10 = icmp sgt i32 %9, 0
  %11 = and i1 %7, %10
  br i1 %11, label %12, label %15

12:                                               ; preds = %0
  %13 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.54334f2da67f0369870a9254e714573e, i32 5)
  %14 = call i1 @_FortranAioOutputAscii(ptr %13, ptr nonnull @_QQcl.596573, i64 3)
  br label %18

15:                                               ; preds = %0
  %16 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.54334f2da67f0369870a9254e714573e, i32 7)
  %17 = call i1 @_FortranAioOutputAscii(ptr %16, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %18

18:                                               ; preds = %12, %15
  %.sink = phi ptr [ %13, %12 ], [ %16, %15 ]
  %19 = 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 i64 @_FortranAIndex1(ptr, i64, ptr, i64, i1) 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}
