cyclegraph: separate an 'addEdge(CycleNode *, CycleNode *) function
[c11tester.git] / cyclegraph.h
index 5d9c976b5a1c21ae22459ec9380ce3164f529ddd..8668077ed271cc887c7a249f470a8345c54d1539 100644 (file)
@@ -40,6 +40,7 @@ class CycleGraph {
 
        SNAPSHOTALLOC
  private:
+       void addEdge(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;
@@ -52,8 +53,6 @@ class CycleGraph {
 
        bool checkReachable(const CycleNode *from, const CycleNode *to) const;
 
-       bool edgeCreatesCycle(const CycleNode *from, const CycleNode *to) const;
-
        /** @brief A flag: true if this graph contains cycles */
        bool hasCycles;
        bool oldCycles;