program prob3
    implicit none
    integer(8)::W, H, x, y
    real(16):: xm,ym, ans
    read(*,*) W, H, x, y
    xm = real(W,kind=16)/2.0_16
    ym = real(H,kind=16)/2.0_16

    ans = real(H*W,kind=16)/2.0_16
    if(mod(W,2)==0 .and. mod(H,2)==0)then
        if(x == W/2 .and. y == H/2)then
            write(*,*) ans, 1
            stop
        end if
    end if

    write(*,*) ans,0

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

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %2 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %3 = alloca fp128, align 16
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.1f0d9b5c3ab89c0544a0cad4ad35c2cc, i32 5)
  %9 = call i1 @_FortranAioInputInteger(ptr %8, ptr nonnull %5, i32 8)
  %10 = call i1 @_FortranAioInputInteger(ptr %8, ptr nonnull %4, i32 8)
  %11 = call i1 @_FortranAioInputInteger(ptr %8, ptr nonnull %6, i32 8)
  %12 = call i1 @_FortranAioInputInteger(ptr %8, ptr nonnull %7, i32 8)
  %13 = call i32 @_FortranAioEndIoStatement(ptr %8)
  %14 = load i64, ptr %5, align 8, !tbaa !3
  %15 = load i64, ptr %4, align 8, !tbaa !3
  %16 = mul i64 %15, %14
  %17 = sitofp i64 %16 to fp128
  %18 = fmul contract fp128 %17, 0xL00000000000000003FFE000000000000
  store fp128 %18, ptr %3, align 16, !tbaa !3
  %19 = or i64 %15, %14
  %20 = and i64 %19, 1
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %36

22:                                               ; preds = %0
  %23 = load i64, ptr %6, align 8, !tbaa !3
  %24 = sdiv i64 %14, 2
  %25 = icmp eq i64 %23, %24
  %26 = load i64, ptr %7, align 8, !tbaa !3
  %27 = sdiv i64 %15, 2
  %28 = icmp eq i64 %26, %27
  %29 = and i1 %25, %28
  br i1 %29, label %30, label %36

30:                                               ; preds = %22
  %31 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.1f0d9b5c3ab89c0544a0cad4ad35c2cc, i32 12)
  store ptr %3, ptr %1, align 8, !tbaa !7
  %.fca.1.gep4 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 1
  store i64 16, ptr %.fca.1.gep4, align 8, !tbaa !7
  %.fca.2.gep6 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep6, align 8, !tbaa !7
  %.fca.3.gep8 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep8, align 4, !tbaa !7
  %.fca.4.gep10 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 4
  store i8 31, ptr %.fca.4.gep10, align 1, !tbaa !7
  %.fca.5.gep12 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep12, align 2, !tbaa !7
  %.fca.6.gep14 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep14, align 1, !tbaa !7
  %32 = call i1 @_FortranAioOutputDescriptor(ptr %31, ptr nonnull %1)
  %33 = call i1 @_FortranAioOutputInteger32(ptr %31, i32 1)
  %34 = call i32 @_FortranAioEndIoStatement(ptr %31)
  %35 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

36:                                               ; preds = %22, %0
  %37 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.1f0d9b5c3ab89c0544a0cad4ad35c2cc, i32 17)
  store ptr %3, ptr %2, align 8, !tbaa !7
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 1
  store i64 16, ptr %.fca.1.gep, align 8, !tbaa !7
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !7
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep, align 4, !tbaa !7
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 4
  store i8 31, ptr %.fca.4.gep, align 1, !tbaa !7
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep, align 2, !tbaa !7
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !7
  %38 = call i1 @_FortranAioOutputDescriptor(ptr %37, ptr nonnull %2)
  %39 = call i1 @_FortranAioOutputInteger32(ptr %37, i32 0)
  %40 = call i32 @_FortranAioEndIoStatement(ptr %37)
  %41 = 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 @_FortranAioOutputDescriptor(ptr, ptr) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) 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"}
!7 = !{!8, !8, i64 0}
!8 = !{!"descriptor member", !5, i64 0}
