run.sh: pass command-line arguments through to test program
[model-checker.git] / cyclegraph.h
index 690170022b3746c878c253d46eb58cc102f5c50c..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
 
@@ -29,12 +33,13 @@ class CycleNode {
        CycleNode(const ModelAction *action);
        void addEdge(CycleNode * node);
        std::vector<CycleNode *> * getEdges();
-       bool setRMW();
+       bool setRMW(CycleNode *);
+       CycleNode* getRMW();
 
  private:
        const ModelAction *action;
        std::vector<CycleNode *> edges;
-       bool hasRMW;
+       CycleNode * hasRMW;
 };
 
 #endif