Skip to content

Commit

Permalink
SVF code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Oct 22, 2024
1 parent 2108688 commit a68b293
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions svf/include/Graphs/ThreadCallGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ThreadForkEdge: public PTACallGraphEdge
public:
/// Constructor
ThreadForkEdge(PTACallGraphNode* s, PTACallGraphNode* d, CallSiteID csId) :
PTACallGraphEdge(s, d, PTACallGraphEdge::TDForkEdge, csId)
PTACallGraphEdge(s, d, PTACallGraphEdge::TDForkEdge, csId)
{
}
/// Destructor
Expand Down Expand Up @@ -90,7 +90,7 @@ class ThreadJoinEdge: public PTACallGraphEdge
public:
/// Constructor
ThreadJoinEdge(PTACallGraphNode* s, PTACallGraphNode* d, CallSiteID csId) :
PTACallGraphEdge(s, d, PTACallGraphEdge::TDJoinEdge, csId)
PTACallGraphEdge(s, d, PTACallGraphEdge::TDJoinEdge, csId)
{
}
/// Destructor
Expand Down Expand Up @@ -130,7 +130,7 @@ class HareParForEdge: public PTACallGraphEdge
public:
/// Constructor
HareParForEdge(PTACallGraphNode* s, PTACallGraphNode* d, CallSiteID csId) :
PTACallGraphEdge(s, d, PTACallGraphEdge::HareParForEdge, csId)
PTACallGraphEdge(s, d, PTACallGraphEdge::HareParForEdge, csId)
{
}
/// Destructor
Expand Down
8 changes: 4 additions & 4 deletions svf/lib/Graphs/PTACallGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ void PTACallGraph::addCallGraphNode(const SVFFunction* fun)
* Whether we have already created this call graph edge
*/
PTACallGraphEdge* PTACallGraph::hasGraphEdge(PTACallGraphNode* src,
PTACallGraphNode* dst,
PTACallGraphEdge::CEDGEK kind, CallSiteID csId) const
PTACallGraphNode* dst,
PTACallGraphEdge::CEDGEK kind, CallSiteID csId) const
{
PTACallGraphEdge edge(src,dst,kind,csId);
PTACallGraphEdge* outEdge = src->hasOutgoingEdge(&edge);
Expand All @@ -187,8 +187,8 @@ PTACallGraphEdge* PTACallGraph::hasGraphEdge(PTACallGraphNode* src,
* get PTACallGraph edge via nodes
*/
PTACallGraphEdge* PTACallGraph::getGraphEdge(PTACallGraphNode* src,
PTACallGraphNode* dst,
PTACallGraphEdge::CEDGEK kind, CallSiteID)
PTACallGraphNode* dst,
PTACallGraphEdge::CEDGEK kind, CallSiteID)
{
for (PTACallGraphEdge::CallGraphEdgeSet::iterator iter = src->OutEdgeBegin();
iter != src->OutEdgeEnd(); ++iter)
Expand Down
2 changes: 1 addition & 1 deletion svf/lib/Graphs/ThreadCallGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ using namespace SVFUtil;
* Constructor
*/
ThreadCallGraph::ThreadCallGraph(const PTACallGraph& cg) :
PTACallGraph(cg), tdAPI(ThreadAPI::getThreadAPI())
PTACallGraph(cg), tdAPI(ThreadAPI::getThreadAPI())
{
kind = ThdCallGraph;
DBOUT(DGENERAL, outs() << SVFUtil::pasMsg("Building ThreadCallGraph\n"));
Expand Down

0 comments on commit a68b293

Please sign in to comment.