Download Here - Cleanscape Products

Transcript
124
Appendix D. Sample Output: Fortran 90
! ** demo90.inc **
FUNCTION MAIN_INNER(DUM)
REAL, INTENT(INOUT) :: DUM(:, :)
REAL (KIND=KIND(0.0D0)) :: SUM = 0
DONAME1: DO 10 I = 10, SIZE(DUM, 1)
DONAME2:
DO 20 J = 10, SIZE(DUM, 2)
IF (SUM < 0) CYCLE DONAME2
SUM = SUM + DUM(I, J)
IF (SUM > 100) EXIT DONAME1
20 END DO DONAME2
10 END DO DONAME1
MAIN_INNER = INT (SUM)
END FUNCTION
D.2 Analysis Output
FortranLint
Rev 5.0
Default options:
Command options:
2-Jan-02
10:49:55
Page 1
-w -u -O207,276,76,261 -Ttrim -Xno_unreferenced_parameters
-Xno_unused_common_variables
-f -g -s -t -x -Sdemo90
demo90.f90
*******************************************************************************
Subroutine M_INNER
File demo90.f90
Line 16
<Module subprog of M>
>
TYPE1%NAME = 'ALIAS: ' // TYPE2%NAME
>
^
demo90.f90:M_INNER line 19:
SYNTAX FYI #105- string will be truncated (from 17 to 10 chars).
*******************************************************************************
Subroutine OUTER
File demo90.f90
Line 25
>
TYPE1%SCORES(1, 1) = TYPE2%SCORES(1) * OPDUM
>
^
demo90.f90:OUTER line 32:
SYNTAX ERROR #168- array referenced with too few subscripts.
*******************************************************************************
Program MAIN
File demo90.f90
Line 38
> USE M, TYPE_S => MYTYPE, &
>
MYLOC => LOC
!private module entities cannot be accessed
>
^
demo90.f90:MAIN line 42:
SYNTAX ERROR #661- entity not accessible in module M.
> CALL M_INNER(STUDENT1, STUDENT2)
>
^
demo90.f90:MAIN line 46:
INTERFACE FYI #256- type TYPE_S passed to a type MYTYPE dummy arg (same format
but different names).
> CALL M_INNER(STUDENT1, STUDENT2)
>
^
demo90.f90:MAIN line 46:
INTERFACE FYI #256- type TYPE_S passed to a type MYTYPE dummy arg (same format
but different names).
>
>
CALL OUTER(STUDENT1, STUDENT2)
^
Cleanscape Software
FortranLint User’s Manual
Version 6.x