run.sh: pass command-line arguments through to test program
[model-checker.git] / cyclegraph.h
index a98e68c972e77cf6b615cff94521bd872df4e26a..5cf709324a863d51e4ec45956093600460495232 100644 (file)
@@ -1,3 +1,7 @@
+/** @file cyclegraph.h @brief Data structure to track ordering
+ *  constraints on modification order.  The idea is to see whether a
+ *  total order exists that satisfies the ordering constriants.*/
+
 #ifndef CYCLEGRAPH_H
 #define CYCLEGRAPH_H
 
@@ -15,6 +19,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 +33,13 @@ class CycleNode {
        CycleNode(const ModelAction *action);
        void addEdge(CycleNode * node);
        std::vector<CycleNode *> * getEdges();
+       bool setRMW(CycleNode *);
+       CycleNode* getRMW();
 
  private:
        const ModelAction *action;
        std::vector<CycleNode *> edges;
+       CycleNode * hasRMW;
 };
 
 #endif