Skip to content

SageInterface::isCanonicalDoLoop

Check if a Fortran Do loop has a complete canonical form: Do I=1, 10, 1. A nonconstant step has runtime direction; it must never be guessed to be increasing by consumers.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility("default")]]
bool
isCanonicalDoLoop(
    SgFortranDo* loop,
    SgInitializedName** ivar,
    SgExpression** lb,
    SgExpression** ub,
    SgExpression** step,
    SgStatement** body,
    CanonicalFortranLoopDirection* direction,
    bool* isInclusiveUpperBound);

Parameters

Name Description
ivar This class represents the notion of a declared variable.
lb This class represents the notion of an expression. Expressions
ub This class represents the notion of an expression. Expressions
step This class represents the notion of an expression. Expressions
body This class represents the notion of a statement.

Created with MrDocs