Skip to content

SageInterface::astIntersection

Compute the intersection set for two ASTs.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility("default")]]
std::vector<SgNode*>
astIntersection(
    SgNode* original,
    SgNode* copy,
    SgCopyHelp* help = NULL);

Description

This is part of a test done by the copy function to compute those IR nodes in the copy that still reference the original AST.

Return Value

A standard container which offers fixed time access to individual elements in any order.

Parameters

Name Description
original This class represents the base class for all IR nodes within Sage III.
copy This class represents the base class for all IR nodes within Sage III.
help Supporting class from copy mechanism within ROSE.

Created with MrDocs