projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check_recency: only allow newer stores to "overwrite"
[model-checker.git]
/
cyclegraph.h
diff --git
a/cyclegraph.h
b/cyclegraph.h
index 1af54c77818bde954d784eb925cc56adc2013fd4..a2cb93d7ca702217be5af879cbf0c2ba34f9a67e 100644
(file)
--- a/
cyclegraph.h
+++ b/
cyclegraph.h
@@
-9,9
+9,11
@@
#ifndef __CYCLEGRAPH_H__
#define __CYCLEGRAPH_H__
#ifndef __CYCLEGRAPH_H__
#define __CYCLEGRAPH_H__
-#include "hashtable.h"
#include <vector>
#include <inttypes.h>
#include <vector>
#include <inttypes.h>
+#include <stdio.h>
+
+#include "hashtable.h"
#include "config.h"
#include "mymemory.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;
#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 <typename T, typename U>
+ void dot_print_edge(FILE *file, const T *from, const U *to, const char *prop);
#endif
bool resolvePromise(const Promise *promise, ModelAction *writer,
#endif
bool resolvePromise(const Promise *promise, ModelAction *writer,
@@
-71,7
+77,7
@@
class CycleGraph {
HashTable<const Promise *, CycleNode *, uintptr_t, 4> promiseToNode;
#if SUPPORT_MOD_ORDER_DUMP
HashTable<const Promise *, CycleNode *, uintptr_t, 4> promiseToNode;
#if SUPPORT_MOD_ORDER_DUMP
- std::vector<
CycleNode *
> nodeList;
+ std::vector<
CycleNode *, SnapshotAlloc<CycleNode *>
> nodeList;
#endif
bool checkReachable(const CycleNode *from, const CycleNode *to) const;
#endif
bool checkReachable(const CycleNode *from, const CycleNode *to) const;