program main
 implicit none
 integer A,B
 integer taxA, taxB
 integer i

 read *, A, B

 do i=1,10000
  taxA=i*0.08
  taxB=i*0.1

 if (taxA==A .and. taxB==B ) then
  print '(i0)',i
  goto 100
 end if

 end do

 print '(i0)', -1

100 continue

endprogram main

; 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.5b1921bb54331edbf141b86e837a6eee = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2198/source.f\00"
@_QQcl.28693029 = linkonce constant [4 x i8] c"(i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.5b1921bb54331edbf141b86e837a6eee, i32 7)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 4)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = load i32, ptr %1, align 4, !tbaa !3
  %8 = load i32, ptr %2, align 4, !tbaa !3
  br label %9

9:                                                ; preds = %31, %0
  %.0810 = phi i32 [ 1, %0 ], [ %32, %31 ]
  %10 = sitofp i32 %.0810 to float
  %11 = fmul contract float %10, 0x3FB47AE140000000
  %12 = fptosi float %11 to i32
  %13 = fmul contract float %10, 0x3FB99999A0000000
  %14 = fptosi float %13 to i32
  %15 = icmp eq i32 %7, %12
  %16 = icmp eq i32 %8, %14
  %17 = and i1 %15, %16
  br i1 %17, label %18, label %21

18:                                               ; preds = %21, %9
  %.0810.lcssa = phi i32 [ %.0810, %9 ], [ %22, %21 ]
  %19 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.5b1921bb54331edbf141b86e837a6eee, i32 14)
  %20 = call i1 @_FortranAioOutputInteger32(ptr %19, i32 %.0810.lcssa)
  br label %36

21:                                               ; preds = %9
  %22 = add nuw nsw i32 %.0810, 1
  %23 = sitofp i32 %22 to float
  %24 = fmul contract float %23, 0x3FB47AE140000000
  %25 = fptosi float %24 to i32
  %26 = fmul contract float %23, 0x3FB99999A0000000
  %27 = fptosi float %26 to i32
  %28 = icmp eq i32 %7, %25
  %29 = icmp eq i32 %8, %27
  %30 = and i1 %28, %29
  br i1 %30, label %18, label %31

31:                                               ; preds = %21
  %32 = add nuw nsw i32 %.0810, 2
  %exitcond.not.1 = icmp eq i32 %32, 10001
  br i1 %exitcond.not.1, label %33, label %9

33:                                               ; preds = %31
  %34 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.5b1921bb54331edbf141b86e837a6eee, i32 20)
  %35 = call i1 @_FortranAioOutputInteger32(ptr %34, i32 -1)
  br label %36

36:                                               ; preds = %18, %33
  %.sink = phi ptr [ %19, %18 ], [ %34, %33 ]
  %37 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  ret void
}

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