Skip to content

Commit

Permalink
Flush the trace stream before displaying sat results (#6162)
Browse files Browse the repository at this point in the history
  • Loading branch information
utaal committed Jul 14, 2022
1 parent 2f5fef9 commit af80bd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd_context/cmd_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,10 @@ void cmd_context::add_declared_functions(model& mdl) {
}

void cmd_context::display_sat_result(lbool r) {
if (has_manager() && m().has_trace_stream()) {
m().trace_stream().flush();
}

switch (r) {
case l_true:
regular_stream() << "sat" << std::endl;
Expand Down

0 comments on commit af80bd1

Please sign in to comment.