Skip to content

Commit

Permalink
prepare ground for drup trim
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
NikolajBjorner committed Jun 14, 2022
1 parent 35d4605 commit 25ad5cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sat/sat_drat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions src/sat/sat_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 25ad5cb

Please sign in to comment.