mirror of
https://github.com/Z3Prover/z3
synced 2025-12-07 20:42:25 +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
|
// 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) {
|
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) {
|
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); });
|
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