From 9b0952262f756e69a0ef04558107c8cecdccb9ce Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Thu, 19 Apr 2012 11:31:41 -0700 Subject: [PATCH] model: add TreeNode debugging information to print_trace() --- model.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model.cc b/model.cc index 404e14c..6493022 100644 --- a/model.cc +++ b/model.cc @@ -112,10 +112,15 @@ void ModelChecker::print_trace(void) { std::list::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) -- 2.34.1