X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=cyclegraph.h;h=1cc0d069531e6499aed90a3972bfd1ff533c3c8f;hp=c8e8956be10529d194304061f8f90a6c48181181;hb=92c453e0b51244839270e67528e7a18ba6af82b0;hpb=e309adaee27786a638bcd44303ecb88351074257 diff --git a/cyclegraph.h b/cyclegraph.h index c8e8956b..1cc0d069 100644 --- a/cyclegraph.h +++ b/cyclegraph.h @@ -11,6 +11,7 @@ #include "config.h" #include "mymemory.h" +class Promise; class CycleNode; class ModelAction; @@ -23,12 +24,13 @@ 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(); void rollbackChanges(); #if SUPPORT_MOD_ORDER_DUMP + void dumpNodes(FILE *file); void dumpGraphToFile(const char * filename); #endif