program sample
    implicit none
  
    integer(8) :: i,j,m,n,x,y
    real(8)::a,b
    
  
    read(*,*) x,y
    m=0
    if (x==1)then
        m=m+300000
        if (y==1)then
            m=m+400000
        end if
    end if
    if (x==2)then
        m=m+200000
    end if
    if (x==3)then
        m=m+100000
    end if
    if (y==1)then
        m=m+300000
    end if
    if (y==2)then
        m=m+200000
    end if
    if (y==3)then
        m=m+100000
    end if
    write(*,*) m
  
    stop
end program sample
  


; 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.910739b9ad30c2d3ed84b5592a184d6f = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2941/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.910739b9ad30c2d3ed84b5592a184d6f, i32 8)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 8)
  %5 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 8)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = load i64, ptr %1, align 8, !tbaa !3
  %8 = icmp eq i64 %7, 1
  %9 = load i64, ptr %2, align 8
  %10 = icmp eq i64 %9, 1
  %spec.select = select i1 %10, i64 700000, i64 300000
  %.0 = select i1 %8, i64 %spec.select, i64 0
  %11 = icmp eq i64 %7, 2
  %12 = add nuw nsw i64 %.0, 200000
  %spec.select8 = select i1 %11, i64 %12, i64 %.0
  %13 = icmp eq i64 %7, 3
  %14 = add nuw nsw i64 %spec.select8, 100000
  %.2 = select i1 %13, i64 %14, i64 %spec.select8
  %15 = add nuw nsw i64 %.2, 300000
  %.3 = select i1 %10, i64 %15, i64 %.2
  %16 = icmp eq i64 %9, 2
  %17 = add nuw nsw i64 %.3, 200000
  %.4 = select i1 %16, i64 %17, i64 %.3
  %18 = icmp eq i64 %9, 3
  %19 = add nuw nsw i64 %.4, 100000
  %.5 = select i1 %18, i64 %19, i64 %.4
  %20 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.910739b9ad30c2d3ed84b5592a184d6f, i32 31)
  %21 = call i1 @_FortranAioOutputInteger64(ptr %20, i64 %.5)
  %22 = call i32 @_FortranAioEndIoStatement(ptr %20)
  %23 = 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 @_FortranAioOutputInteger64(ptr, i64) local_unnamed_addr

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

attributes #0 = { noreturn }

!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"}
