3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-02 22:19:30 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-10 03:03:39 -07:00
parent b1b77e57e1
commit 61fb134653
4 changed files with 25 additions and 18 deletions

View file

@ -3465,7 +3465,7 @@ namespace smt {
if (!check_preamble(reset_cancel)) return l_undef;
SASSERT(at_base_level());
setup_context(false);
if (m_fparams.m_threads > 1) {
if (m_fparams.m_threads > 1 && !m.has_trace_stream()) {
expr_ref_vector asms(m, num_assumptions, assumptions);
parallel p(*this);
return p(asms);

View file

@ -62,7 +62,7 @@ namespace smt {
if (m.has_trace_stream())
throw default_exception("trace streams have to be off in parallel mode");
for (unsigned i = 0; i < num_threads; ++i) {
smt_params.push_back(ctx.get_fparams());
}
@ -183,6 +183,8 @@ namespace smt {
}
};
num_threads = 1;
while (true) {
vector<std::thread> threads(num_threads);
for (unsigned i = 0; i < num_threads; ++i) {