mirror of
https://github.com/Z3Prover/z3
synced 2025-10-07 08:21:56 +00:00
internalize assertions during simplify
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
dcd947f5ef
commit
ea4bec9d03
1 changed files with 10 additions and 0 deletions
|
@ -255,6 +255,8 @@ namespace smt {
|
|||
|
||||
|
||||
void parallel2::worker::simplify() {
|
||||
if (!m.inc())
|
||||
return;
|
||||
// first attempt: one-shot simplification of the context.
|
||||
// a precise schedule of repeated simplification is TBD.
|
||||
// also, the in-processing simplifier should be applied to
|
||||
|
@ -309,6 +311,14 @@ namespace smt {
|
|||
}
|
||||
ctx = new_ctx.detach();
|
||||
|
||||
ctx->internalize_assertions();
|
||||
|
||||
auto old_atoms = m_num_initial_atoms;
|
||||
m_num_shared_units = ctx->assigned_literals().size();
|
||||
m_num_initial_atoms = ctx->get_num_bool_vars();
|
||||
|
||||
|
||||
LOG_WORKER(1, " inprocess " << old_atoms << " -> " << m_num_initial_atoms << "\n");
|
||||
// TODO: copy user-propagators similar to context::copy.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue