3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-25 12:35:59 +00:00

resolve bug about not popping local ctx to base level before collecting shared lits

This commit is contained in:
Ilana Shapiro 2025-08-13 11:13:16 -07:00
parent ae64207be6
commit bba1111e1b

View file

@ -124,6 +124,7 @@ namespace smt {
void parallel::worker::share_units(ast_translation& l2g) {
// Collect new units learned locally by this worker and send to batch manager
ctx->pop_to_base_lvl();
unsigned sz = ctx->assigned_literals().size();
for (unsigned j = m_num_shared_units; j < sz; ++j) { // iterate only over new literals since last sync
literal lit = ctx->assigned_literals()[j];