Skip to content

Commit

Permalink
move sccRepNode/SccSubNodes to AndersenBase
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed May 14, 2024
1 parent 45cc769 commit f20fefc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions svf/include/WPA/Andersen.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ class AndersenBase: public WPAConstraintSolver, public BVDataPTAImpl
return consCG;
}

/// SCC methods
//@{
inline NodeID sccRepNode(NodeID id) const override
{
return consCG->sccRepNode(id);
}
inline NodeBS& sccSubNodes(NodeID repId)
{
return consCG->sccSubNodes(repId);
}
//@}

/// dump statistics
inline void printStat()
{
Expand Down Expand Up @@ -203,18 +215,6 @@ class Andersen: public AndersenBase
}
//@}

/// SCC methods
//@{
inline NodeID sccRepNode(NodeID id) const
{
return consCG->sccRepNode(id);
}
inline NodeBS& sccSubNodes(NodeID repId)
{
return consCG->sccSubNodes(repId);
}
//@}

/// Operation of points-to set
virtual inline const PointsTo& getPts(NodeID id)
{
Expand Down

0 comments on commit f20fefc

Please sign in to comment.