program sample
	implicit none
    real(8) :: a,b,x,y,x1,y1
    
    read(*,*) a,b
    
    x = a*100/8
    y = b*10
    x1 = (a+1)*100/8
    y1 = (b+1)*10
    
	if (x<=y .and. y<x1) then
    	write(*,*) int(y)
    else if (y<=x .and. x<y1) then
    	if (int(x) == x) then
    		write(*,*) int(x)
        else
        	write(*,*) int(x) + 1
        end if
    else
    	write(*,*) -1
    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.08f5579f8018212f7d7311ffa9692b34 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2212/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.08f5579f8018212f7d7311ffa9692b34, i32 5)
  %4 = call i1 @_FortranAioInputReal64(ptr %3, ptr nonnull %1)
  %5 = call i1 @_FortranAioInputReal64(ptr %3, ptr nonnull %2)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = load double, ptr %1, align 8, !tbaa !3
  %8 = fmul contract double %7, 1.000000e+02
  %9 = fmul contract double %8, 1.250000e-01
  %10 = load double, ptr %2, align 8, !tbaa !3
  %11 = fmul contract double %10, 1.000000e+01
  %12 = fadd contract double %7, 1.000000e+00
  %13 = fmul contract double %12, 1.000000e+02
  %14 = fmul contract double %13, 1.250000e-01
  %15 = fcmp ole double %9, %11
  %16 = fcmp olt double %11, %14
  %17 = and i1 %15, %16
  br i1 %17, label %18, label %21

18:                                               ; preds = %0
  %19 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.08f5579f8018212f7d7311ffa9692b34, i32 13)
  %20 = fptosi double %11 to i32
  br label %38

21:                                               ; preds = %0
  %22 = fadd contract double %10, 1.000000e+00
  %23 = fmul contract double %22, 1.000000e+01
  %24 = fcmp ole double %11, %9
  %25 = fcmp olt double %9, %23
  %26 = and i1 %24, %25
  br i1 %26, label %27, label %36

27:                                               ; preds = %21
  %28 = fptosi double %9 to i32
  %29 = sitofp i32 %28 to double
  %30 = fcmp oeq double %9, %29
  br i1 %30, label %31, label %33

31:                                               ; preds = %27
  %32 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.08f5579f8018212f7d7311ffa9692b34, i32 16)
  br label %38

33:                                               ; preds = %27
  %34 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.08f5579f8018212f7d7311ffa9692b34, i32 18)
  %35 = add i32 %28, 1
  br label %38

36:                                               ; preds = %21
  %37 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.08f5579f8018212f7d7311ffa9692b34, i32 21)
  br label %38

38:                                               ; preds = %18, %31, %33, %36
  %.sink12 = phi i32 [ %20, %18 ], [ %28, %31 ], [ %35, %33 ], [ -1, %36 ]
  %.sink11 = phi ptr [ %19, %18 ], [ %32, %31 ], [ %34, %33 ], [ %37, %36 ]
  %39 = call i1 @_FortranAioOutputInteger32(ptr %.sink11, i32 %.sink12)
  %40 = call i32 @_FortranAioEndIoStatement(ptr %.sink11)
  %41 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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