Inspect Manual

Using Inspect With FORTRAN
Inspect Manual429164-006
11-8
Expressions
These data locations assume a current scope path of #LOSSES:
Expressions
Here is the syntax you use to create FORTRAN expressions in Inspect.
Usage Considerations
Operator precedence is the same as the precedence defined for FORTRAN.
ASSIGN statements and the integer variables to which label values are assigned
are ignored by Inspect.
FORTRAN Data Types and Inspect
The following subsections discuss how Inspect handles and presents various
FORTRAN data types.
Data Location Specifies
X(5+I,4) An element of the array X.
COLLAPSE The variable COLLAPSE in the COMMON block TALLIES. Note that
the elements of a COMMON block have a subprogram as their scope
unit, not the COMMON block.
expression:
condition [ bool-op condition ]...
bool-op: one of
.AND. .OR. .EQV. .NEQV.
condition:
[ .NOT. ] simple-exp [ rel-op simple-exp ]
rel-op: one of
.LT. .LE. .GT. .GE. .EQ. .NE.
simple-exp:
[ + | - ] term [ { + | - } term ]...
term:
factor [ { * | / } factor ]...
factor:
primary [ **primary ]
primary: one of
data-location
constant
( expression )