Skip to content

Commit

Permalink
Remove ClauseDB::reduction_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Sep 16, 2024
1 parent 5855bcf commit 8926570
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/cdb/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ pub struct ClauseDB {
/// Literal Block Entanglement
/// EMA of LBD of clauses used in conflict analysis (dependency graph)
pub(super) lb_entanglement: Ema2,
/// cutoff value will be used in the next `reduce`
pub(super) reduction_threshold: DecisionLevel,

//
//## incremental solving
Expand Down Expand Up @@ -149,7 +147,6 @@ impl Instantiate for ClauseDB {
activity_anti_decay: 1.0 - config.crw_dcy_rat,

lbd_temp: vec![0; nv + 1],
reduction_threshold: 128,
..ClauseDB::default()
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/cdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ impl Default for ClauseDB {
num_reduction: 0,
num_reregistration: 0,
lb_entanglement: Ema2::new(1_000).with_slow(80_000).with_value(2.0),
reduction_threshold: 128,

#[cfg(all(feature = "clause_elimination", not(feature = "incremental_solver")))]
eliminated_permanent: Vec::new(),
Expand Down Expand Up @@ -272,7 +271,6 @@ impl ClauseDBIF for ClauseDB {
self.clause[ci].search_from = 0;
self.clause[ci].rank_old = self[ci].rank;
self.lbd.update(self[ci].rank);
self.reduction_threshold = self.reduction_threshold.min(self[ci].rank);
self.num_clause += 1;
if learnt {
if len2 {
Expand Down Expand Up @@ -573,7 +571,6 @@ impl ClauseDBIF for ClauseDB {
}
}
}
self.reduction_threshold = 128;
// let keep = perm.len().max(alives);
// if perm.is_empty() {
// return;
Expand Down

0 comments on commit 8926570

Please sign in to comment.