program Rectangle_Cutting
    implicit none
    real(8):: w,h,x,y
    integer(4):: ans
    read*, w,h,x,y

    if (w/2d0 == x .and. h/2d0 == y) then
        ans = 1
    else
        ans = 0
    end if

    print*, w*h*0.5d0, ans
end program Rectangle_Cutting
; 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.9482d5440a83c445706d7a9e06aaeb00 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4024/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.9482d5440a83c445706d7a9e06aaeb00, i32 5)
  %6 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %2)
  %7 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %1)
  %8 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %3)
  %9 = call i1 @_FortranAioInputReal64(ptr %5, ptr nonnull %4)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %11 = load double, ptr %2, align 8, !tbaa !3
  %12 = fmul contract double %11, 5.000000e-01
  %13 = load double, ptr %3, align 8, !tbaa !3
  %14 = fcmp oeq double %12, %13
  %15 = load double, ptr %1, align 8, !tbaa !3
  %16 = fmul contract double %15, 5.000000e-01
  %17 = load double, ptr %4, align 8, !tbaa !3
  %18 = fcmp oeq double %16, %17
  %19 = and i1 %14, %18
  %. = zext i1 %19 to i32
  %20 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.9482d5440a83c445706d7a9e06aaeb00, i32 13)
  %21 = load double, ptr %2, align 8, !tbaa !3
  %22 = load double, ptr %1, align 8, !tbaa !3
  %23 = fmul contract double %21, %22
  %24 = fmul contract double %23, 5.000000e-01
  %25 = call i1 @_FortranAioOutputReal64(ptr %20, double %24)
  %26 = call i1 @_FortranAioOutputInteger32(ptr %20, i32 %.)
  %27 = call i32 @_FortranAioEndIoStatement(ptr %20)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputReal64(ptr, ptr) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

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