program prob79
    implicit none
    integer :: a,b,ans
    read(*,*) a,b

    if(a >= b)then
        ans = a
        a = a - 1
    else
        ans = b
        b = b - 1
    end if
    ans = ans + max(a,b)
    write(*,*) ans

    stop
contains
end program prob79
; 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.5f8bef0584a9b080c0f4ba85b70bd2d8 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4459/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.5f8bef0584a9b080c0f4ba85b70bd2d8, i32 4)
  %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 = load i32, ptr %2, align 4, !tbaa !3
  %.not = icmp slt i32 %7, %8
  br i1 %.not, label %11, label %9

9:                                                ; preds = %0
  %10 = add i32 %7, -1
  store i32 %10, ptr %1, align 4, !tbaa !3
  br label %13

11:                                               ; preds = %0
  %12 = add nsw i32 %8, -1
  store i32 %12, ptr %2, align 4, !tbaa !3
  br label %13

13:                                               ; preds = %9, %11
  %14 = phi i32 [ %8, %9 ], [ %12, %11 ]
  %15 = phi i32 [ %10, %9 ], [ %7, %11 ]
  %.0 = phi i32 [ %7, %9 ], [ %8, %11 ]
  %16 = call i32 @llvm.smax.i32(i32 %15, i32 %14)
  %17 = add i32 %16, %.0
  %18 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.5f8bef0584a9b080c0f4ba85b70bd2d8, i32 14)
  %19 = call i1 @_FortranAioOutputInteger32(ptr %18, i32 %17)
  %20 = call i32 @_FortranAioEndIoStatement(ptr %18)
  %21 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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 @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

declare {} @_FortranAStopStatement(i32, i1, i1) local_unnamed_addr

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

attributes #0 = { noreturn }
attributes #1 = { 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"}
