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:
c01b2b7
)
model: add TreeNode debugging information to print_trace()
author
Brian Norris
<banorris@uci.edu>
Thu, 19 Apr 2012 18:31:41 +0000
(11:31 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 19 Apr 2012 18:31:41 +0000
(11:31 -0700)
model.cc
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index 404e14c7e9e0bd515b6a5372173dba50eace0111..6493022e090670e3c5dde9c0cbf924a9f2abc5f5 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-112,10
+112,15
@@
void ModelChecker::print_trace(void)
{
std::list<class ModelAction *>::iterator it;
+ printf("\n");
+ printf("---------------------------------------------------------------------\n");
+ printf("Total nodes created: %d\n\n", TreeNode::getTotalNodes());
+
for (it = action_trace.begin(); it != action_trace.end(); it++) {
DBG();
(*it)->print();
}
+ printf("---------------------------------------------------------------------\n");
}
int ModelChecker::add_thread(Thread *t)