Skip to content

Commit

Permalink
rename GlobalValueValVar
Browse files Browse the repository at this point in the history
  • Loading branch information
bjjwwang committed Dec 11, 2024
1 parent 22045d8 commit efcf2de
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion svf/include/SVFIR/SVFIR.h
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ class SVFIR : public IRGraph

inline NodeID addGlobalValueValNode(const SVFValue* curInst, const NodeID i, const ICFGNode* icfgNode)
{
SVFVar* node = new GlobalValueValvar(curInst, i, icfgNode);
SVFVar* node = new GlobalValueValVar(curInst, i, icfgNode);
return addNode(node, i);
}

Expand Down
4 changes: 2 additions & 2 deletions svf/include/SVFIR/SVFVariables.h
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ class ConstantDataValVar: public ConstantValVar
virtual const std::string toString() const;
};

class GlobalValueValvar: public ConstantValVar
class GlobalValueValVar : public ConstantValVar
{
friend class SVFIRWriter;
friend class SVFIRReader;
Expand Down Expand Up @@ -807,7 +807,7 @@ class GlobalValueValvar: public ConstantValVar
//@}

/// Constructor
GlobalValueValvar(const SVFValue* val, NodeID i, const ICFGNode* icn,
GlobalValueValVar(const SVFValue* val, NodeID i, const ICFGNode* icn,
PNODEK ty = GlobalValueValNode)
: ConstantValVar(val, i, icn, ty)
{
Expand Down
2 changes: 1 addition & 1 deletion svf/lib/SABER/SaberSVFGBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void SaberSVFGBuilder::collectGlobals(BVDataPTAImpl* pta)
if(SVFUtil::isa<DummyObjVar>(pag->getGNode(gepobj->getBaseNode())))
continue;
}
if(pagNode->hasValue() && SVFUtil::isa<GlobalValueValvar, GlobalValueObjVar>(pagNode))
if(pagNode->hasValue() && SVFUtil::isa<GlobalValueValVar, GlobalValueObjVar>(pagNode))
worklist.push_back(it->first);
}

Expand Down
2 changes: 1 addition & 1 deletion svf/lib/SVFIR/SVFFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ cJSON* SVFIRWriter::virtToJson(const SVFVar* var)
CASE(FunValNode, FunValVar);
CASE(ConstantValNode, ConstantValVar);
CASE(ConstantDataValNode, ConstantDataValVar);
CASE(GlobalValueValNode, GlobalValueValvar);
CASE(GlobalValueValNode, GlobalValueValVar);
CASE(BlackHoleNode, BlackHoleVar);
CASE(ConstantFPValNode, ConstantFPValVar);
CASE(ConstantIntValNode, ConstantIntValVar);
Expand Down
2 changes: 1 addition & 1 deletion svf/lib/SVFIR/SVFVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const std::string ConstantDataValVar::toString() const {
return rawstr.str();
}

const std::string GlobalValueValvar::toString() const {
const std::string GlobalValueValVar::toString() const {
std::string str;
std::stringstream rawstr(str);
rawstr << "GlobalValueValVar ID: " << getId();
Expand Down

0 comments on commit efcf2de

Please sign in to comment.