From: Brian Norris Date: Sat, 17 Nov 2012 07:51:59 +0000 (-0800) Subject: model: print_summary() should be const X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=commitdiff_plain;h=14653dd20b5fee25e5077ce6a154022fc9f85ce7 model: print_summary() should be const --- diff --git a/model.cc b/model.cc index 199a8fc3..691cd72b 100644 --- a/model.cc +++ b/model.cc @@ -2287,7 +2287,8 @@ void ModelChecker::dumpGraph(char *filename) { } #endif -void ModelChecker::print_summary() +/** @brief Prints an execution trace summary. */ +void ModelChecker::print_summary() const { #if SUPPORT_MOD_ORDER_DUMP scheduler->print(); diff --git a/model.h b/model.h index bbad36e4..447c77d7 100644 --- a/model.h +++ b/model.h @@ -87,8 +87,7 @@ public: /** @returns the context for the main model-checking system thread */ ucontext_t * get_system_context() { return &system_context; } - /** Prints an execution summary with trace information. */ - void print_summary(); + void print_summary() const; #if SUPPORT_MOD_ORDER_DUMP void dumpGraph(char *filename); #endif