mirror of
https://github.com/Z3Prover/z3
synced 2025-10-18 13:30:26 +00:00
put return_cubes under lock
This commit is contained in:
parent
bba1111e1b
commit
7f25a0d71b
1 changed files with 1 additions and 0 deletions
|
@ -341,6 +341,7 @@ namespace smt {
|
|||
|
||||
// currenly, the code just implements the greedy strategy
|
||||
void parallel::batch_manager::return_cubes(ast_translation& l2g, vector<expr_ref_vector>const& C_worker, expr_ref_vector const& A_worker) {
|
||||
std::scoped_lock lock(mux);
|
||||
auto atom_in_cube = [&](expr_ref_vector const& cube, expr* atom) {
|
||||
return any_of(cube, [&](expr* e) { return e == atom || (m.is_not(e, e) && e == atom); });
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue