ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cfgUtils.h File Reference
#include "genericDataflowCommon.h"
#include "variables.h"
#include "VirtualCFGIterator.h"
#include "DataflowCFG.h"
#include <set>
#include <string>
Include dependency graph for cfgUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 cfgUtils
 

Constant Groups

 cfgUtils
 

Functions

void cfgUtils::initCFGUtils (SgProject *project_arg)
 
SgProjectcfgUtils::getProject ()
 
bool cfgUtils::computeTermsOfIfCondition_LTEQ (SgExpression *expr, varID &x, bool &negX, varID &y, bool &negY, long &c)
 
bool cfgUtils::computeTermsOfIfCondition_EQ (SgExpression *expr, varID &x, bool &negX, varID &y, bool &negY, long &c)
 
bool cfgUtils::findArrayAccesses (SgNode *ast_node, m_varID2varID2quad &wrIndex, m_varID2varID2quad &rdIndex, m_varID2bool &rdFromExp, m_varID2bool &wrFromExp, varIDSet arrays, m_varID2str vars2Name)
 
bool cfgUtils::parseArrayAccess (SgNode *ast_node, m_varID2varID2quad &wrIndexSimp, varIDlist &wrIndexCpx, m_varID2varID2quad &rdIndexSimp, varIDlist &rdIndexCpx, m_varID2str vars2Name)
 
bool cfgUtils::isAssignment (SgNode *n)
 
SgNodecfgUtils::getAssignmentLHS (SgNode *n)
 
void cfgUtils::getAssignmentRHS (SgNode *n, std::set< SgNode * > &rhs)
 
bool cfgUtils::parseAssignment (SgNode *expr, short &op, varID &i, varID &j, bool &negJ, varID &k, bool &negK, long &c)
 
bool cfgUtils::parseExpr (const SgExpression *expr, short &op, varID &i, bool &negI, varID &j, bool &negJ, long &c)
 
bool cfgUtils::parseAddition (const SgExpression *expr, varID &j, bool &negJ, varID &k, bool &negK, long &c)
 
bool cfgUtils::parseMultiplication (const SgExpression *expr, varID &j, varID &k, long &c)
 
bool cfgUtils::parseDivision (const SgExpression *expr, varID &j, varID &k, long &c)
 
bool cfgUtils::IsConstInt (const SgExpression *rhs, long &val)
 
const SgExpressioncfgUtils::unwrapCasts (const SgExpression *e)
 
DataflowNode cfgUtils::getFuncStartCFG (SgFunctionDefinition *func, bool(*f)(CFGNode)=defaultFilter)
 
DataflowNode cfgUtils::getFuncEndCFG (SgFunctionDefinition *func, bool(*f)(CFGNode)=defaultFilter)
 
std::string cfgUtils::genUniqueName ()
 
SgFunctionDeclarationcfgUtils::getFuncDecl (std::string name)
 
SgFunctionDefinitioncfgUtils::funcDeclToDef (SgFunctionDeclaration *decl)
 

Variables

SgProjectcfgUtils::project
 
const short cfgUtils::none =0
 
const short cfgUtils::add =1
 
const short cfgUtils::subtract =2
 
const short cfgUtils::mult =3
 
const short cfgUtils::divide =4