projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cyclegraph: add const
[model-checker.git]
/
cyclegraph.h
diff --git
a/cyclegraph.h
b/cyclegraph.h
index f2f30329203c226c5a7a1c6140fa3043bb260613..45e49fb7bec3950656054e02f92b06aa5cf3ae65 100644
(file)
--- a/
cyclegraph.h
+++ b/
cyclegraph.h
@@
-42,7
+42,7
@@
class CycleGraph {
private:
void putNode(const ModelAction *act, CycleNode *node);
CycleNode * getNode(const ModelAction *);
private:
void putNode(const ModelAction *act, CycleNode *node);
CycleNode * getNode(const ModelAction *);
- HashTable<
CycleNode *,
CycleNode *, uintptr_t, 4, model_malloc, model_calloc, model_free> *discovered;
+ HashTable<
const CycleNode *, const
CycleNode *, uintptr_t, 4, model_malloc, model_calloc, model_free> *discovered;
/** @brief A table for mapping ModelActions to CycleNodes */
HashTable<const ModelAction *, CycleNode *, uintptr_t, 4> actionToNode;
/** @brief A table for mapping ModelActions to CycleNodes */
HashTable<const ModelAction *, CycleNode *, uintptr_t, 4> actionToNode;
@@
-50,7
+50,7
@@
class CycleGraph {
std::vector<CycleNode *> nodeList;
#endif
std::vector<CycleNode *> nodeList;
#endif
- bool checkReachable(
CycleNode *from,
CycleNode *to) const;
+ bool checkReachable(
const CycleNode *from, const
CycleNode *to) const;
/** @brief A flag: true if this graph contains cycles */
bool hasCycles;
/** @brief A flag: true if this graph contains cycles */
bool hasCycles;