Skip to content

VariableRenaming::getNodeForRenameNumber

Get the node that defines the given number of the given variable.

Synopsis

Declared in <src/midend/programAnalysis/variableRenaming/VariableRenaming.h>

SgNode*
getNodeForRenameNumber(
    VarName const& var,
    int num) const;

Description

This will return the node that defines the 'num' value of var. It will be the defining node for the variable renumbered with num of the variable var. If the provided number does not exist for var, it will return NULL.

Return Value

The defining node of var:num, or NULL if the renumbering does not exist.

Parameters

Name

Description

var

The variable to get the defining node for.

num

The renumbering of the defining node to get.

Created with MrDocs