Add RMW support to core.
[model-checker.git] / cyclegraph.h
index a98e68c972e77cf6b615cff94521bd872df4e26a..690170022b3746c878c253d46eb58cc102f5c50c 100644 (file)
@@ -15,6 +15,7 @@ class CycleGraph {
        ~CycleGraph();
        void addEdge(const ModelAction *from, const ModelAction *to);
        bool checkForCycles();
+       void addRMWEdge(const ModelAction *from, const ModelAction *to);
 
  private:
        CycleNode * getNode(const ModelAction *);
@@ -28,10 +29,12 @@ class CycleNode {
        CycleNode(const ModelAction *action);
        void addEdge(CycleNode * node);
        std::vector<CycleNode *> * getEdges();
+       bool setRMW();
 
  private:
        const ModelAction *action;
        std::vector<CycleNode *> edges;
+       bool hasRMW;
 };
 
 #endif