program grouping
  implicit none
  integer :: x, y, z(12)
  z = (/1,3,1,2,1,2,1,1,2,1,2,1/)
  read(*,*) x, y
  if (z(x).eq.z(y)) then
    write(*,'(a)') "Yes"
  else
    write(*,'(a)') "No"
  end if
end program grouping
; 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"

@_QFEz = internal unnamed_addr global [12 x i32] undef
@_QQro.12xi4.bbdd029cf64487b45035d340f0f8c49e = internal unnamed_addr constant [12 x i32] [i32 1, i32 3, i32 1, i32 2, i32 1, i32 2, i32 1, i32 1, i32 2, i32 1, i32 2, i32 1]
@_QQcl.afa19917937ba0862aa3837ab640956d = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7261/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_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

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(48) @_QFEz, ptr noundef nonnull align 16 dereferenceable(48) @_QQro.12xi4.bbdd029cf64487b45035d340f0f8c49e, i64 48, i1 false), !tbaa !3
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.afa19917937ba0862aa3837ab640956d, i32 5)
  %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 = sext i32 %7 to i64
  %9 = add nsw i64 %8, -1
  %10 = getelementptr [12 x i32], ptr @_QFEz, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !3
  %12 = load i32, ptr %2, align 4, !tbaa !3
  %13 = sext i32 %12 to i64
  %14 = add nsw i64 %13, -1
  %15 = getelementptr [12 x i32], ptr @_QFEz, i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !3
  %17 = icmp eq i32 %11, %16
  br i1 %17, label %18, label %21

18:                                               ; preds = %0
  %19 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.afa19917937ba0862aa3837ab640956d, i32 7)
  %20 = call i1 @_FortranAioOutputAscii(ptr %19, ptr nonnull @_QQcl.596573, i64 3)
  br label %24

21:                                               ; preds = %0
  %22 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.afa19917937ba0862aa3837ab640956d, i32 9)
  %23 = call i1 @_FortranAioOutputAscii(ptr %22, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %24

24:                                               ; preds = %18, %21
  %.sink = phi ptr [ %19, %18 ], [ %22, %21 ]
  %25 = 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 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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"}
