      PROGRAM piyo
      IMPLICIT NONE
      character(10) :: s,t,u
      integer :: a,b
      
      read*,s,t
      read*,a,b
      read*,u
      
      
      if( trim(s)==trim(u) ) a = a - 1
      if( trim(t)==trim(u) ) b = b - 1
      
      print*, max(0,a),max(0,b)

      
      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.8bdfd2e82e3f5448686398323c06919b = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2431/source.f\00"
@_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 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %6 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %7 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [10 x i8], align 1
  %11 = alloca [10 x i8], align 1
  %12 = alloca [10 x i8], align 1
  %13 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 6)
  %14 = call i1 @_FortranAioInputAscii(ptr %13, ptr nonnull %10, i64 10)
  %15 = call i1 @_FortranAioInputAscii(ptr %13, ptr nonnull %11, i64 10)
  %16 = call i32 @_FortranAioEndIoStatement(ptr %13)
  %17 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 7)
  %18 = call i1 @_FortranAioInputInteger(ptr %17, ptr nonnull %8, i32 4)
  %19 = call i1 @_FortranAioInputInteger(ptr %17, ptr nonnull %9, i32 4)
  %20 = call i32 @_FortranAioEndIoStatement(ptr %17)
  %21 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 8)
  %22 = call i1 @_FortranAioInputAscii(ptr %21, ptr nonnull %12, i64 10)
  %23 = call i32 @_FortranAioEndIoStatement(ptr %21)
  store ptr %10, ptr %3, align 8, !tbaa !3
  %.fca.1.gep116 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 1
  store i64 10, ptr %.fca.1.gep116, align 8, !tbaa !3
  %.fca.2.gep118 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep118, align 8, !tbaa !3
  %.fca.3.gep120 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep120, align 4, !tbaa !3
  %.fca.4.gep122 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep122, align 1, !tbaa !3
  %.fca.5.gep124 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep124, align 2, !tbaa !3
  %.fca.6.gep126 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep126, align 1, !tbaa !3
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %7, i64 0, i32 1
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %7, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, 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 %7, 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 %7, 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 %7, 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 %7, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !3
  %24 = call {} @_FortranATrim(ptr nonnull %7, ptr nonnull %3, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 8)
  %.fca.0.load = load ptr, ptr %7, align 8, !tbaa !3
  %.fca.1.load = load i64, ptr %.fca.1.gep, align 8, !tbaa !3
  store ptr %12, ptr %2, align 8, !tbaa !3
  %.fca.1.gep241 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 1
  store i64 10, ptr %.fca.1.gep241, align 8, !tbaa !3
  %.fca.2.gep243 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep243, align 8, !tbaa !3
  %.fca.3.gep245 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep245, align 4, !tbaa !3
  %.fca.4.gep247 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep247, align 1, !tbaa !3
  %.fca.5.gep249 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep249, align 2, !tbaa !3
  %.fca.6.gep251 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep251, align 1, !tbaa !3
  %.fca.1.gep11 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %6, i64 0, i32 1
  %.fca.2.gep13 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %6, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, 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 %6, 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 %6, 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 %6, 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 %6, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep21, align 1, !tbaa !3
  %25 = call {} @_FortranATrim(ptr nonnull %6, ptr nonnull %2, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 8)
  %.fca.0.load23 = load ptr, ptr %6, align 8, !tbaa !3
  %.fca.1.load26 = load i64, ptr %.fca.1.gep11, align 8, !tbaa !3
  %26 = call i32 @_FortranACharacterCompareScalar1(ptr %.fca.0.load, ptr %.fca.0.load23, i64 %.fca.1.load, i64 %.fca.1.load26)
  %27 = icmp eq i32 %26, 0
  call void @free(ptr %.fca.0.load23)
  call void @free(ptr %.fca.0.load)
  br i1 %27, label %28, label %31

28:                                               ; preds = %0
  %29 = load i32, ptr %8, align 4, !tbaa !7
  %30 = add i32 %29, -1
  store i32 %30, ptr %8, align 4, !tbaa !7
  br label %31

31:                                               ; preds = %28, %0
  store ptr %11, ptr %1, align 8, !tbaa !3
  %.fca.1.gep262 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 1
  store i64 10, ptr %.fca.1.gep262, align 8, !tbaa !3
  %.fca.2.gep264 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep264, align 8, !tbaa !3
  %.fca.3.gep266 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep266, align 4, !tbaa !3
  %.fca.4.gep268 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep268, align 1, !tbaa !3
  %.fca.5.gep270 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep270, align 2, !tbaa !3
  %.fca.6.gep272 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep272, align 1, !tbaa !3
  %.fca.1.gep46 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %5, i64 0, i32 1
  %.fca.2.gep48 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %5, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 0, i64 16, i1 false)
  store i32 20180515, ptr %.fca.2.gep48, align 8, !tbaa !3
  %.fca.3.gep50 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %5, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep50, align 4, !tbaa !3
  %.fca.4.gep52 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %5, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep52, align 1, !tbaa !3
  %.fca.5.gep54 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %5, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep54, align 2, !tbaa !3
  %.fca.6.gep56 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %5, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep56, align 1, !tbaa !3
  %32 = call {} @_FortranATrim(ptr nonnull %5, ptr nonnull %1, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 11)
  %.fca.0.load58 = load ptr, ptr %5, align 8, !tbaa !3
  %.fca.1.load61 = load i64, ptr %.fca.1.gep46, align 8, !tbaa !3
  %.fca.1.gep81 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 1
  %.fca.2.gep83 = 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.gep83, align 8, !tbaa !3
  %.fca.3.gep85 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep85, align 4, !tbaa !3
  %.fca.4.gep87 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep87, align 1, !tbaa !3
  %.fca.5.gep89 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep89, align 2, !tbaa !3
  %.fca.6.gep91 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep91, align 1, !tbaa !3
  %33 = call {} @_FortranATrim(ptr nonnull %4, ptr nonnull %2, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 11)
  %.fca.0.load93 = load ptr, ptr %4, align 8, !tbaa !3
  %.fca.1.load96 = load i64, ptr %.fca.1.gep81, align 8, !tbaa !3
  %34 = call i32 @_FortranACharacterCompareScalar1(ptr %.fca.0.load58, ptr %.fca.0.load93, i64 %.fca.1.load61, i64 %.fca.1.load96)
  %35 = icmp eq i32 %34, 0
  call void @free(ptr %.fca.0.load93)
  call void @free(ptr %.fca.0.load58)
  br i1 %35, label %36, label %39

36:                                               ; preds = %31
  %37 = load i32, ptr %9, align 4, !tbaa !7
  %38 = add i32 %37, -1
  store i32 %38, ptr %9, align 4, !tbaa !7
  br label %39

39:                                               ; preds = %36, %31
  %40 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.8bdfd2e82e3f5448686398323c06919b, i32 14)
  %41 = load i32, ptr %8, align 4, !tbaa !7
  %42 = call i32 @llvm.smax.i32(i32 %41, i32 0)
  %43 = call i1 @_FortranAioOutputInteger32(ptr %40, i32 %42)
  %44 = load i32, ptr %9, align 4, !tbaa !7
  %45 = call i32 @llvm.smax.i32(i32 %44, i32 0)
  %46 = call i1 @_FortranAioOutputInteger32(ptr %40, i32 %45)
  %47 = call i32 @_FortranAioEndIoStatement(ptr %40)
  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 i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

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

declare i32 @_FortranACharacterCompareScalar1(ptr, ptr, i64, i64) local_unnamed_addr

declare ptr @_FortranAioBeginExternalListOutput(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) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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}
