X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cyclegraph.h;h=a2cb93d7ca702217be5af879cbf0c2ba34f9a67e;hb=e0f80c403452e544452f64687b3c489a869e4f77;hp=1af54c77818bde954d784eb925cc56adc2013fd4;hpb=9fe0f14ceaf30ca99ce7a58aba8c49bb9b351f71;p=model-checker.git diff --git a/cyclegraph.h b/cyclegraph.h index 1af54c7..a2cb93d 100644 --- a/cyclegraph.h +++ b/cyclegraph.h @@ -9,9 +9,11 @@ #ifndef __CYCLEGRAPH_H__ #define __CYCLEGRAPH_H__ -#include "hashtable.h" #include #include +#include + +#include "hashtable.h" #include "config.h" #include "mymemory.h" @@ -45,6 +47,10 @@ class CycleGraph { #if SUPPORT_MOD_ORDER_DUMP void dumpNodes(FILE *file) const; void dumpGraphToFile(const char *filename) const; + + void dot_print_node(FILE *file, const ModelAction *act); + template + void dot_print_edge(FILE *file, const T *from, const U *to, const char *prop); #endif bool resolvePromise(const Promise *promise, ModelAction *writer, @@ -71,7 +77,7 @@ class CycleGraph { HashTable promiseToNode; #if SUPPORT_MOD_ORDER_DUMP - std::vector nodeList; + std::vector< CycleNode *, SnapshotAlloc > nodeList; #endif bool checkReachable(const CycleNode *from, const CycleNode *to) const;