program sample
	implicit none
    integer(8) :: x,y,z,a,b,c,d
    
    read(*,*) x,y,z
    
    if (mod(x,2)/=0 .and. mod(y,2)/=0 .and. mod(z,2) /=0) then
    	if (x<=y) then
        	if (y>z) then
            	a=y
                b=z
                y=b
                z=a
            end if
            write(*,*) x*y
        else
        	a=x
            b=y
            x=b
            y=a
            if (y>z) then
            	c=y
                d=z
                y=d
                z=c
            end if
           	write(*,*) x*y
        end if
    else
    	write(*,*) 0
    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.74fc437b3101002204eb162c12b20827 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7907/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 = alloca i64, align 8
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.74fc437b3101002204eb162c12b20827, i32 5)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %1, i32 8)
  %6 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %2, i32 8)
  %7 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 8)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %9 = load i64, ptr %1, align 8, !tbaa !3
  %10 = load i64, ptr %2, align 8, !tbaa !3
  %11 = load i64, ptr %3, align 8, !tbaa !3
  %12 = and i64 %9, 1
  %13 = and i64 %12, %10
  %14 = and i64 %13, %11
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %34, label %15

15:                                               ; preds = %0
  %.not9 = icmp sgt i64 %9, %10
  br i1 %.not9, label %25, label %16

16:                                               ; preds = %15
  %17 = icmp sgt i64 %10, %11
  br i1 %17, label %18, label %19

18:                                               ; preds = %16
  store i64 %11, ptr %2, align 8, !tbaa !3
  store i64 %10, ptr %3, align 8, !tbaa !3
  br label %19

19:                                               ; preds = %18, %16
  %20 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.74fc437b3101002204eb162c12b20827, i32 15)
  %21 = load i64, ptr %1, align 8, !tbaa !3
  %22 = load i64, ptr %2, align 8, !tbaa !3
  %23 = mul i64 %22, %21
  %24 = call i1 @_FortranAioOutputInteger64(ptr %20, i64 %23)
  br label %37

25:                                               ; preds = %15
  store i64 %10, ptr %1, align 8, !tbaa !3
  store i64 %9, ptr %2, align 8, !tbaa !3
  %26 = icmp sgt i64 %9, %11
  br i1 %26, label %27, label %28

27:                                               ; preds = %25
  store i64 %11, ptr %2, align 8, !tbaa !3
  store i64 %9, ptr %3, align 8, !tbaa !3
  br label %28

28:                                               ; preds = %27, %25
  %29 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.74fc437b3101002204eb162c12b20827, i32 27)
  %30 = load i64, ptr %1, align 8, !tbaa !3
  %31 = load i64, ptr %2, align 8, !tbaa !3
  %32 = mul i64 %31, %30
  %33 = call i1 @_FortranAioOutputInteger64(ptr %29, i64 %32)
  br label %37

34:                                               ; preds = %0
  %35 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.74fc437b3101002204eb162c12b20827, i32 30)
  %36 = call i1 @_FortranAioOutputInteger32(ptr %35, i32 0)
  br label %37

37:                                               ; preds = %19, %28, %34
  %.sink = phi ptr [ %20, %19 ], [ %29, %28 ], [ %35, %34 ]
  %38 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  %39 = 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 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"}
