Skip to content

Commit

Permalink
(vivify) revise parameters and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Oct 7, 2022
1 parent 71409ea commit 3c980d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cdb/vivify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl VivifyIF for ClauseDB {
let mut clauses: Vec<OrderedProxy<ClauseId>> = select_targets(
asg,
self,
(0 < state[Stat::Restart]).then_some(state[Stat::Vivification] % 3 == 0),
(0 < state[Stat::Restart]).then_some(state[Stat::Vivification] % 2 == 0),
NUM_TARGETS,
);
if clauses.is_empty() {
Expand Down Expand Up @@ -352,7 +352,7 @@ impl Clause {
#[cfg(not(feature = "clause_rewarding"))]
fn to_vivify(&self, by_activity: bool) -> Option<f64> {
(!self.is_dead()
&& self.rank * 2 <= self.rank_old
&& (self.rank * 2 <= self.rank_old || self.rank + 8 < self.rank_old)
&& (self.is(FlagClause::LEARNT) || self.is(FlagClause::DERIVE20)))
.then(|| {
if by_activity {
Expand Down

0 comments on commit 3c980d5

Please sign in to comment.