program sample
    implicit none
  
    integer(8) :: i,j,m,n,t,x(3),y(3),z(3)
   
  
    read(*,*)x
    
    read(*,*)y
    read(*,*)z
    if(x(1)+y(2)+z(3)==x(2)+y(3)+z(1) .and. x(1)+y(2)+z(3)==x(3)+y(1)+z(2))then
        if (x(1)+y(3)+z(2)==x(2)+y(1)+z(3) .and. x(3)+y(2)+z(1)==x(2)+y(1)+z(3))then
            write(*,*)'Yes'
            stop
        end if
    end if

    write(*,*) 'No'
  
    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.e87544859d52b81596a484419f720898 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6273/source.f\00"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %2 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %3 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %4 = alloca [3 x i64], align 8
  %5 = alloca [3 x i64], align 8
  %6 = alloca [3 x i64], align 8
  %7 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.e87544859d52b81596a484419f720898, i32 7)
  store ptr %4, ptr %3, align 8, !tbaa !3
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 1
  store i64 8, ptr %.fca.1.gep, align 8, !tbaa !3
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !3
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep, align 4, !tbaa !3
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 4
  store i8 10, ptr %.fca.4.gep, align 1, !tbaa !3
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep, align 2, !tbaa !3
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !3
  %.fca.7.0.0.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep, align 8, !tbaa !3
  %.fca.7.0.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 1
  store i64 3, ptr %.fca.7.0.1.gep, align 8, !tbaa !3
  %.fca.7.0.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %3, i64 0, i32 7, i64 0, i64 2
  store i64 8, ptr %.fca.7.0.2.gep, align 8, !tbaa !3
  %8 = call i1 @_FortranAioInputDescriptor(ptr %7, ptr nonnull %3)
  %9 = call i32 @_FortranAioEndIoStatement(ptr %7)
  %10 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.e87544859d52b81596a484419f720898, i32 9)
  store ptr %5, ptr %2, align 8, !tbaa !3
  %.fca.1.gep4 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 1
  store i64 8, ptr %.fca.1.gep4, align 8, !tbaa !3
  %.fca.2.gep6 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep6, align 8, !tbaa !3
  %.fca.3.gep8 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep8, align 4, !tbaa !3
  %.fca.4.gep10 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 4
  store i8 10, ptr %.fca.4.gep10, align 1, !tbaa !3
  %.fca.5.gep12 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep12, align 2, !tbaa !3
  %.fca.6.gep14 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep14, align 1, !tbaa !3
  %.fca.7.0.0.gep16 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep16, align 8, !tbaa !3
  %.fca.7.0.1.gep18 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 1
  store i64 3, ptr %.fca.7.0.1.gep18, align 8, !tbaa !3
  %.fca.7.0.2.gep20 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %2, i64 0, i32 7, i64 0, i64 2
  store i64 8, ptr %.fca.7.0.2.gep20, align 8, !tbaa !3
  %11 = call i1 @_FortranAioInputDescriptor(ptr %10, ptr nonnull %2)
  %12 = call i32 @_FortranAioEndIoStatement(ptr %10)
  %13 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.e87544859d52b81596a484419f720898, i32 10)
  store ptr %6, ptr %1, align 8, !tbaa !3
  %.fca.1.gep24 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 1
  store i64 8, ptr %.fca.1.gep24, align 8, !tbaa !3
  %.fca.2.gep26 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep26, align 8, !tbaa !3
  %.fca.3.gep28 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep28, align 4, !tbaa !3
  %.fca.4.gep30 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 4
  store i8 10, ptr %.fca.4.gep30, align 1, !tbaa !3
  %.fca.5.gep32 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep32, align 2, !tbaa !3
  %.fca.6.gep34 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep34, align 1, !tbaa !3
  %.fca.7.0.0.gep36 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep36, align 8, !tbaa !3
  %.fca.7.0.1.gep38 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 1
  store i64 3, ptr %.fca.7.0.1.gep38, align 8, !tbaa !3
  %.fca.7.0.2.gep40 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %1, i64 0, i32 7, i64 0, i64 2
  store i64 8, ptr %.fca.7.0.2.gep40, align 8, !tbaa !3
  %14 = call i1 @_FortranAioInputDescriptor(ptr %13, ptr nonnull %1)
  %15 = call i32 @_FortranAioEndIoStatement(ptr %13)
  %16 = load i64, ptr %4, align 8, !tbaa !7
  %17 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 1
  %18 = load i64, ptr %17, align 8, !tbaa !7
  %19 = add i64 %18, %16
  %20 = getelementptr inbounds [3 x i64], ptr %6, i64 0, i64 2
  %21 = load i64, ptr %20, align 8, !tbaa !7
  %22 = add i64 %19, %21
  %23 = getelementptr inbounds [3 x i64], ptr %4, i64 0, i64 1
  %24 = load i64, ptr %23, align 8, !tbaa !7
  %25 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 2
  %26 = load i64, ptr %25, align 8, !tbaa !7
  %27 = add i64 %26, %24
  %28 = load i64, ptr %6, align 8, !tbaa !7
  %29 = add i64 %27, %28
  %30 = icmp eq i64 %22, %29
  %31 = getelementptr inbounds [3 x i64], ptr %4, i64 0, i64 2
  %32 = load i64, ptr %31, align 8, !tbaa !7
  %33 = load i64, ptr %5, align 8, !tbaa !7
  %34 = add i64 %33, %32
  %35 = getelementptr inbounds [3 x i64], ptr %6, i64 0, i64 1
  %36 = load i64, ptr %35, align 8, !tbaa !7
  %37 = add i64 %34, %36
  %38 = icmp eq i64 %22, %37
  %39 = and i1 %30, %38
  br i1 %39, label %40, label %55

40:                                               ; preds = %0
  %41 = add i64 %26, %16
  %42 = add i64 %41, %36
  %43 = add i64 %24, %21
  %44 = add i64 %43, %33
  %45 = icmp eq i64 %42, %44
  %46 = add i64 %28, %18
  %47 = add i64 %46, %32
  %48 = icmp eq i64 %47, %44
  %49 = and i1 %45, %48
  br i1 %49, label %50, label %55

50:                                               ; preds = %40
  %51 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.e87544859d52b81596a484419f720898, i32 13)
  %52 = call i1 @_FortranAioOutputAscii(ptr %51, ptr nonnull @_QQcl.596573, i64 3)
  %53 = call i32 @_FortranAioEndIoStatement(ptr %51)
  %54 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

55:                                               ; preds = %40, %0
  %56 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.e87544859d52b81596a484419f720898, i32 18)
  %57 = call i1 @_FortranAioOutputAscii(ptr %56, ptr nonnull @_QQcl.4E6F, i64 2)
  %58 = call i32 @_FortranAioEndIoStatement(ptr %56)
  %59 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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

declare i1 @_FortranAioInputDescriptor(ptr, ptr) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

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

declare i1 @_FortranAioOutputAscii(ptr, ptr, i64) 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 = !{!"descriptor member", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any data access", !5, i64 0}
