Skip to content

VariableRenaming::getRenameNumberForNode

Get the rename number for the given variable and the given node.

Synopsis

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

int
getRenameNumberForNode(
    VarName const& var,
    SgNode* node) const;

Description

This will return the number of the given variable as it is defined on the given node. If the provided node does not define the variable, the function will return -1.

Return Value

The number of var @ node, or -1 if node does not define var.

Parameters

Name Description
var The variable to get the renumbering for.
node The defining node to get the renumbering at.

Created with MrDocs