mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +00:00
parent
bb451c39c9
commit
acb9376ea0
|
@ -1327,6 +1327,9 @@ namespace sat {
|
|||
}
|
||||
|
||||
lbool solver::check_par(unsigned num_lits, literal const* lits) {
|
||||
if (!rlimit().inc()) {
|
||||
return l_undef;
|
||||
}
|
||||
scoped_ptr_vector<i_local_search> ls;
|
||||
scoped_ptr_vector<solver> uw;
|
||||
int num_extra_solvers = m_config.m_num_threads - 1;
|
||||
|
@ -1442,6 +1445,11 @@ namespace sat {
|
|||
}
|
||||
};
|
||||
|
||||
if (!rlimit().inc()) {
|
||||
set_par(nullptr, 0);
|
||||
return l_undef;
|
||||
}
|
||||
|
||||
vector<std::thread> threads(num_threads);
|
||||
for (int i = 0; i < num_threads; ++i) {
|
||||
threads[i] = std::thread([&, i]() { worker_thread(i); });
|
||||
|
|
Loading…
Reference in a new issue