void ModelChecker::print_summary(void)
{
- action_list_t::iterator it;
-
printf("\n");
- printf("---------------------------------------------------------------------\n");
printf("Number of executions: %d\n", num_executions);
- printf("Total nodes created: %d\n\n", TreeNode::getTotalNodes());
+ printf("Total nodes created: %d\n", TreeNode::getTotalNodes());
scheduler->print();
- printf("Trace:\n\n");
+ print_list(action_trace);
+ printf("\n");
+
+}
+
+void ModelChecker::print_list(action_list_t *list)
+{
+ action_list_t::iterator it;
+
+ printf("---------------------------------------------------------------------\n");
+ printf("Trace:\n");
- for (it = action_trace->begin(); it != action_trace->end(); it++) {
- DBG();
+ for (it = list->begin(); it != list->end(); it++) {
(*it)->print();
}
printf("---------------------------------------------------------------------\n");
Backtrack * get_next_backtrack();
void reset_to_initial_state();
+ void print_list(action_list_t *list);
+
class ModelAction *current_action;
Backtrack *exploring;
thread_id_t nextThread;