projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update TODO's
[model-checker.git]
/
cyclegraph.h
diff --git
a/cyclegraph.h
b/cyclegraph.h
index a98e68c972e77cf6b615cff94521bd872df4e26a..690170022b3746c878c253d46eb58cc102f5c50c 100644
(file)
--- a/
cyclegraph.h
+++ b/
cyclegraph.h
@@
-15,6
+15,7
@@
class CycleGraph {
~CycleGraph();
void addEdge(const ModelAction *from, const ModelAction *to);
bool checkForCycles();
~CycleGraph();
void addEdge(const ModelAction *from, const ModelAction *to);
bool checkForCycles();
+ void addRMWEdge(const ModelAction *from, const ModelAction *to);
private:
CycleNode * getNode(const ModelAction *);
private:
CycleNode * getNode(const ModelAction *);
@@
-28,10
+29,12
@@
class CycleNode {
CycleNode(const ModelAction *action);
void addEdge(CycleNode * node);
std::vector<CycleNode *> * getEdges();
CycleNode(const ModelAction *action);
void addEdge(CycleNode * node);
std::vector<CycleNode *> * getEdges();
+ bool setRMW();
private:
const ModelAction *action;
std::vector<CycleNode *> edges;
private:
const ModelAction *action;
std::vector<CycleNode *> edges;
+ bool hasRMW;
};
#endif
};
#endif