program test01
 implicit none
 integer A, B, C

 read *, A, B, C

 if ( A == B ) then
  if ( B == C ) then
   print '(A)', 'No'
   stop
  else
   print '(A)', 'Yes'
  end if
 else
  if ( B == C ) then
   print '(A)', 'Yes'
  end if
  if ( C == A ) then
   print '(A)', 'Yes'
  end if
 end if
  if ( A /= B .and. B /= C .and. C /= A ) then
   print '(A)', 'No'
  end if

endprogram test01

; 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.1810c93fb2cf392965b9375ec7bde943 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2382/source.f\00"
@_QQcl.284129 = linkonce constant [3 x i8] c"(A)"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.1810c93fb2cf392965b9375ec7bde943, i32 5)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %1, i32 4)
  %6 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %2, i32 4)
  %7 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 4)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %9 = load i32, ptr %1, align 4, !tbaa !3
  %10 = load i32, ptr %2, align 4, !tbaa !3
  %11 = icmp eq i32 %9, %10
  %12 = load i32, ptr %3, align 4, !tbaa !3
  br i1 %11, label %13, label %20

13:                                               ; preds = %0
  %14 = icmp eq i32 %9, %12
  br i1 %14, label %15, label %.sink.split

15:                                               ; preds = %13
  %16 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.1810c93fb2cf392965b9375ec7bde943, i32 9)
  %17 = call i1 @_FortranAioOutputAscii(ptr %16, ptr nonnull @_QQcl.4E6F, i64 2)
  %18 = call i32 @_FortranAioEndIoStatement(ptr %16)
  %19 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

20:                                               ; preds = %0
  %21 = icmp eq i32 %10, %12
  br i1 %21, label %22, label %26

22:                                               ; preds = %20
  %23 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.1810c93fb2cf392965b9375ec7bde943, i32 16)
  %24 = call i1 @_FortranAioOutputAscii(ptr %23, ptr nonnull @_QQcl.596573, i64 3)
  %25 = call i32 @_FortranAioEndIoStatement(ptr %23)
  %.pre = load i32, ptr %3, align 4, !tbaa !3
  %.pre1 = load i32, ptr %1, align 4, !tbaa !3
  br label %26

26:                                               ; preds = %22, %20
  %27 = phi i32 [ %.pre1, %22 ], [ %9, %20 ]
  %28 = phi i32 [ %.pre, %22 ], [ %12, %20 ]
  %29 = icmp eq i32 %28, %27
  br i1 %29, label %.sink.split, label %33

.sink.split:                                      ; preds = %26, %13
  %.sink = phi i32 [ 12, %13 ], [ 19, %26 ]
  %30 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.1810c93fb2cf392965b9375ec7bde943, i32 %.sink)
  %31 = call i1 @_FortranAioOutputAscii(ptr %30, ptr nonnull @_QQcl.596573, i64 3)
  %32 = call i32 @_FortranAioEndIoStatement(ptr %30)
  br label %33

33:                                               ; preds = %.sink.split, %26
  %34 = load i32, ptr %1, align 4, !tbaa !3
  %35 = load i32, ptr %2, align 4, !tbaa !3
  %36 = icmp ne i32 %34, %35
  %37 = load i32, ptr %3, align 4, !tbaa !3
  %38 = icmp ne i32 %35, %37
  %39 = and i1 %36, %38
  %40 = icmp ne i32 %37, %34
  %41 = and i1 %40, %39
  br i1 %41, label %42, label %46

42:                                               ; preds = %33
  %43 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.1810c93fb2cf392965b9375ec7bde943, i32 23)
  %44 = call i1 @_FortranAioOutputAscii(ptr %43, ptr nonnull @_QQcl.4E6F, i64 2)
  %45 = call i32 @_FortranAioEndIoStatement(ptr %43)
  br label %46

46:                                               ; preds = %42, %33
  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 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

declare {} @_FortranAStopStatement(i32, i1, i1) 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"}
