3
0
Fork 0
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:
Ilana Shapiro 2025-08-14 12:27:56 -07:00
parent bba1111e1b
commit 7f25a0d71b

View file

@ -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); });
};