mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +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
|
@ -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,7 +945,7 @@ namespace sat {
|
|||
if (j.level() == 0) {
|
||||
if (m_config.m_drat)
|
||||
drat_log_unit(l, j);
|
||||
|
||||
if (!m_config.m_drup_trim)
|
||||
j = justification(0); // erase justification for level 0
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue