PROGRAM ATCODER

implicit none
integer :: a,b

read*, a,b

if ( a-2 >= b ) then
  print'(i0)', 2*a-1
else if ( b-2 >= a ) then
  print'(i0)', 2*b-1
else
  print'(i0)', a+b
end if

END PROGRAM ATCODER
; 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.a85d317494788d8a7d295869be4eddbf = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4455/source.f\00"
@_QQcl.28693029 = linkonce constant [4 x i8] c"(i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.a85d317494788d8a7d295869be4eddbf, i32 6)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 4)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = load i32, ptr %1, align 4, !tbaa !3
  %8 = add i32 %7, -2
  %9 = load i32, ptr %2, align 4, !tbaa !3
  %.not = icmp slt i32 %8, %9
  br i1 %.not, label %16, label %10

10:                                               ; preds = %0
  %11 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.a85d317494788d8a7d295869be4eddbf, i32 9)
  %12 = load i32, ptr %1, align 4, !tbaa !3
  %13 = shl i32 %12, 1
  %14 = add i32 %13, -1
  %15 = call i1 @_FortranAioOutputInteger32(ptr %11, i32 %14)
  br label %30

16:                                               ; preds = %0
  %17 = add i32 %9, -2
  %.not1 = icmp slt i32 %17, %7
  br i1 %.not1, label %24, label %18

18:                                               ; preds = %16
  %19 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.a85d317494788d8a7d295869be4eddbf, i32 11)
  %20 = load i32, ptr %2, align 4, !tbaa !3
  %21 = shl i32 %20, 1
  %22 = add i32 %21, -1
  %23 = call i1 @_FortranAioOutputInteger32(ptr %19, i32 %22)
  br label %30

24:                                               ; preds = %16
  %25 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.a85d317494788d8a7d295869be4eddbf, i32 13)
  %26 = load i32, ptr %1, align 4, !tbaa !3
  %27 = load i32, ptr %2, align 4, !tbaa !3
  %28 = add i32 %27, %26
  %29 = call i1 @_FortranAioOutputInteger32(ptr %25, i32 %28)
  br label %30

30:                                               ; preds = %10, %18, %24
  %.sink = phi ptr [ %11, %10 ], [ %19, %18 ], [ %25, %24 ]
  %31 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) 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"}
