program sample
	integer ::A,B,C
    
    read(*,*) A,B   
    C=A+B
    
    if (mod(A,3)==0 .or. mod(B,3)==0 .or. mod(C,3)==0) then
    	write(*,*) 'Possible'
    else
    	write(*,*) 'Impossible'
    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.7602f9640ba5d876c22ba346f4c2d1a8 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7107/source.f\00"
@_QQcl.506F737369626C65 = linkonce constant [8 x i8] c"Possible"
@_QQcl.496D706F737369626C65 = linkonce constant [10 x i8] c"Impossible"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.7602f9640ba5d876c22ba346f4c2d1a8, i32 4)
  %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
  %9 = add i32 %8, %7
  %10 = srem i32 %7, 3
  %11 = icmp eq i32 %10, 0
  %12 = srem i32 %8, 3
  %13 = icmp eq i32 %12, 0
  %14 = or i1 %11, %13
  %15 = srem i32 %9, 3
  %16 = icmp eq i32 %15, 0
  %17 = or i1 %14, %16
  %. = select i1 %17, i32 8, i32 10
  %.3 = select i1 %17, i64 8, i64 10
  %_QQcl.506F737369626C65._QQcl.496D706F737369626C65 = select i1 %17, ptr @_QQcl.506F737369626C65, ptr @_QQcl.496D706F737369626C65
  %18 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.7602f9640ba5d876c22ba346f4c2d1a8, i32 %.)
  %19 = call i1 @_FortranAioOutputAscii(ptr %18, ptr nonnull %_QQcl.506F737369626C65._QQcl.496D706F737369626C65, i64 %.3)
  %20 = call i32 @_FortranAioEndIoStatement(ptr %18)
  %21 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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 @_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 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
