X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cyclegraph.h;h=f0f04ffee0c3ca1f9cd3ef2edf46c2743e6c0515;hb=dbb1bb205f35f076cf2d82ec443415d858b22e2f;hp=42866a3b370ceb52ab85967c1cfe0c80f4aedf6f;hpb=eb3b6cccf71b9eeee035e2c98566dfa279e402ae;p=model-checker.git diff --git a/cyclegraph.h b/cyclegraph.h index 42866a3..f0f04ff 100644 --- a/cyclegraph.h +++ b/cyclegraph.h @@ -11,6 +11,7 @@ #include "config.h" #include "mymemory.h" +class Promise; class CycleNode; class ModelAction; @@ -23,7 +24,7 @@ class CycleGraph { bool checkForCycles(); bool checkForRMWViolation(); void addRMWEdge(const ModelAction *from, const ModelAction *rmw); - + bool checkPromise(const ModelAction *from, Promise *p); bool checkReachable(const ModelAction *from, const ModelAction *to); void startChanges(); void commitChanges(); @@ -36,6 +37,7 @@ class CycleGraph { SNAPSHOTALLOC private: CycleNode * getNode(const ModelAction *); + HashTable * discovered; /** @brief A table for mapping ModelActions to CycleNodes */ HashTable actionToNode;