program sample
    implicit none
  
    integer(8) :: i,j,m,n,w,h,x,y
    real(8)::a,b
   
    read(*,*) w,h,x,y

  
    write(*,'(f29.10)',advance='no') w/2.0_8*h
    if (mod(w,2)==1 .or. mod(h,2)==1)then
        write(*,*)0
    else
        if (x==w/2 .and. y==h/2) then
            write(*,*)1
        else
            write(*,*)0
        end if
    end if
  
    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.e19117d5a291d3865f2b496f3d0d5112 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4030/source.f\00"
@_QQcl.286632392E313029 = linkonce constant [8 x i8] c"(f29.10)"
@_QQcl.6E6F = linkonce constant [2 x i8] c"no"
@_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 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.e19117d5a291d3865f2b496f3d0d5112, i32 7)
  %6 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %2, i32 8)
  %7 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %1, i32 8)
  %8 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %3, i32 8)
  %9 = call i1 @_FortranAioInputInteger(ptr %5, ptr nonnull %4, i32 8)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %11 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286632392E313029, i64 8, ptr null, i32 -1, ptr nonnull @_QQcl.e19117d5a291d3865f2b496f3d0d5112, i32 10)
  %12 = call i1 @_FortranAioSetAdvance(ptr %11, ptr nonnull @_QQcl.6E6F, i64 2)
  %13 = load i64, ptr %2, align 8, !tbaa !3
  %14 = sitofp i64 %13 to double
  %15 = fmul contract double %14, 5.000000e-01
  %16 = load i64, ptr %1, align 8, !tbaa !3
  %17 = sitofp i64 %16 to double
  %18 = fmul contract double %15, %17
  %19 = call i1 @_FortranAioOutputReal64(ptr %11, double %18)
  %20 = call i32 @_FortranAioEndIoStatement(ptr %11)
  %21 = load i64, ptr %2, align 8, !tbaa !3
  %22 = and i64 %21, -9223372036854775807
  %23 = icmp eq i64 %22, 1
  %24 = load i64, ptr %1, align 8, !tbaa !3
  %25 = and i64 %24, -9223372036854775807
  %26 = icmp eq i64 %25, 1
  %27 = or i1 %23, %26
  br i1 %27, label %36, label %28

28:                                               ; preds = %0
  %29 = load i64, ptr %3, align 8, !tbaa !3
  %30 = sdiv i64 %21, 2
  %31 = icmp eq i64 %29, %30
  %32 = load i64, ptr %4, align 8, !tbaa !3
  %33 = sdiv i64 %24, 2
  %34 = icmp eq i64 %32, %33
  %35 = and i1 %31, %34
  %. = select i1 %35, i32 15, i32 17
  %.3 = zext i1 %35 to i32
  br label %36

36:                                               ; preds = %28, %0
  %.sink = phi i32 [ 12, %0 ], [ %., %28 ]
  %.sink2 = phi i32 [ 0, %0 ], [ %.3, %28 ]
  %37 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.e19117d5a291d3865f2b496f3d0d5112, i32 %.sink)
  %38 = call i1 @_FortranAioOutputInteger32(ptr %37, i32 %.sink2)
  %39 = call i32 @_FortranAioEndIoStatement(ptr %37)
  %40 = 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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioSetAdvance(ptr, ptr, i64) local_unnamed_addr

declare i1 @_FortranAioOutputReal64(ptr, double) 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

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