projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f8b9a9f
)
Redirect output after taking snapshots
author
weiyu
<weiyuluo1232@gmail.com>
Tue, 25 Feb 2020 03:13:44 +0000
(19:13 -0800)
committer
weiyu
<weiyuluo1232@gmail.com>
Tue, 25 Feb 2020 03:13:44 +0000
(19:13 -0800)
model.cc
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index 5b5ccf701c1798f9627c352f6ae50be4159fc929..f8f1259d58d374f776c03e62d7ac35be08009842 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-85,7
+85,6
@@
ModelChecker::ModelChecker() :
parse_options(¶ms);
initRaceDetector();
/* Configure output redirection for the model-checker */
parse_options(¶ms);
initRaceDetector();
/* Configure output redirection for the model-checker */
- redirect_output();
install_trace_analyses(get_execution());
install_handler();
}
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();
execution_number ++;
if (more_executions)
reset_to_initial_state();
+
history->set_new_exec_flag();
}
history->set_new_exec_flag();
}
@@
-384,6
+384,8
@@
static void runChecker() {
void ModelChecker::startChecker() {
startExecution(get_system_context(), runChecker);
snapshot = take_snapshot();
void ModelChecker::startChecker() {
startExecution(get_system_context(), runChecker);
snapshot = take_snapshot();
+
+ redirect_output();
initMainThread();
}
initMainThread();
}