This is a "low-level" internal function, where the other addEdge()
implementations will be high-level, external interfaces. Differentiate
the names, then.
CycleNode *fromnode = getNode(from);
CycleNode *tonode = getNode(to);
CycleNode *fromnode = getNode(from);
CycleNode *tonode = getNode(to);
- addEdge(fromnode, tonode);
+ addNodeEdge(fromnode, tonode);
* @param fromnode The edge comes from this CycleNode
* @param tonode The edge points to this CycleNode
*/
* @param fromnode The edge comes from this CycleNode
* @param tonode The edge points to this CycleNode
*/
-void CycleGraph::addEdge(CycleNode *fromnode, CycleNode *tonode)
+void CycleGraph::addNodeEdge(CycleNode *fromnode, CycleNode *tonode)
{
if (!hasCycles)
hasCycles = checkReachable(tonode, fromnode);
{
if (!hasCycles)
hasCycles = checkReachable(tonode, fromnode);
- addEdge(fromnode, rmwnode);
+ addNodeEdge(fromnode, rmwnode);
}
#if SUPPORT_MOD_ORDER_DUMP
}
#if SUPPORT_MOD_ORDER_DUMP
- void addEdge(CycleNode *fromnode, CycleNode *tonode);
+ void addNodeEdge(CycleNode *fromnode, CycleNode *tonode);
void putNode(const ModelAction *act, CycleNode *node);
CycleNode * getNode(const ModelAction *);
HashTable<const CycleNode *, const CycleNode *, uintptr_t, 4, model_malloc, model_calloc, model_free> *discovered;
void putNode(const ModelAction *act, CycleNode *node);
CycleNode * getNode(const ModelAction *);
HashTable<const CycleNode *, const CycleNode *, uintptr_t, 4, model_malloc, model_calloc, model_free> *discovered;