mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
prepare ground for drup trim
By not deleting justifications in base level unit literals it is possible for drup-trim to inspect the trail for dependencies - which clauses were used to derive a literal.
This commit is contained in:
parent
35d4605425
commit
25ad5cb073
2 changed files with 3 additions and 3 deletions
|
@ -802,7 +802,7 @@ namespace sat {
|
|||
|
||||
//
|
||||
// placeholder for trim function.
|
||||
// 1. forward pass replaying propositional proof, populate trail stack.
|
||||
// 1. trail contains justification for the empty clause.
|
||||
// 2. backward pass to prune.
|
||||
//
|
||||
svector<std::pair<clause&, status>> drat::trim() {
|
||||
|
|
|
@ -945,8 +945,8 @@ namespace sat {
|
|||
if (j.level() == 0) {
|
||||
if (m_config.m_drat)
|
||||
drat_log_unit(l, j);
|
||||
|
||||
j = justification(0); // erase justification for level 0
|
||||
if (!m_config.m_drup_trim)
|
||||
j = justification(0); // erase justification for level 0
|
||||
}
|
||||
else {
|
||||
VERIFY(!at_base_lvl());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue