projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d6c99
)
nodestack: add print_may_read_from()
author
Brian Norris
<banorris@uci.edu>
Sat, 7 Jul 2012 00:52:40 +0000
(17:52 -0700)
committer
Brian Norris
<banorris@uci.edu>
Sat, 7 Jul 2012 01:00:21 +0000
(18:00 -0700)
nodestack.cc
patch
|
blob
|
history
nodestack.h
patch
|
blob
|
history
diff --git
a/nodestack.cc
b/nodestack.cc
index
1338032
..
10f7a72
100644
(file)
--- a/
nodestack.cc
+++ b/
nodestack.cc
@@
-46,6
+46,14
@@
void Node::print()
printf("******** empty action ********\n");
}
+/** @brief Prints info about may_read_from set */
+void Node::print_may_read_from()
+{
+ readfrom_set_t::iterator it;
+ for (it = may_read_from.begin(); it != may_read_from.end(); it++)
+ (*it)->print();
+}
+
/**
* Checks if the Thread associated with this thread ID has been explored from
* this Node already.
diff --git
a/nodestack.h
b/nodestack.h
index
0e95241
..
c09b628
100644
(file)
--- a/
nodestack.h
+++ b/
nodestack.h
@@
-46,6
+46,7
@@
public:
void add_read_from(const ModelAction *act);
void print();
+ void print_may_read_from();
MEMALLOC
private: