From e5014287e6e7c3ba1c0671edb379867d111b2931 Mon Sep 17 00:00:00 2001 From: weiyu Date: Mon, 24 Feb 2020 19:13:44 -0800 Subject: [PATCH] Redirect output after taking snapshots --- model.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model.cc b/model.cc index 5b5ccf70..f8f1259d 100644 --- a/model.cc +++ b/model.cc @@ -85,7 +85,6 @@ ModelChecker::ModelChecker() : parse_options(¶ms); initRaceDetector(); /* Configure output redirection for the model-checker */ - redirect_output(); install_trace_analyses(get_execution()); install_handler(); } @@ -294,6 +293,7 @@ void ModelChecker::finish_execution(bool more_executions) execution_number ++; if (more_executions) reset_to_initial_state(); + history->set_new_exec_flag(); } @@ -384,6 +384,8 @@ static void runChecker() { void ModelChecker::startChecker() { startExecution(get_system_context(), runChecker); snapshot = take_snapshot(); + + redirect_output(); initMainThread(); } -- 2.34.1