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
*/
-void CycleGraph::addEdge(CycleNode *fromnode, CycleNode *tonode)
+void CycleGraph::addNodeEdge(CycleNode *fromnode, CycleNode *tonode)
{
if (!hasCycles)
hasCycles = checkReachable(tonode, fromnode);
}
}
- addEdge(fromnode, rmwnode);
+ addNodeEdge(fromnode, rmwnode);
}
#if SUPPORT_MOD_ORDER_DUMP
SNAPSHOTALLOC
private:
- 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;