Skip to content

Commit

Permalink
cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Sep 18, 2024
1 parent 975e36e commit ef82dc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solver/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,12 @@ impl SolveIF for Solver {
state[Stat::SubsumedClause] = elim.num_subsumed;
}
state.stm.initialize(STAGE_SIZE);
let nv: u32 = asg.derefer(assign::Tusize::NumUnassertedVar).ilog2();
let nv: u32 = asg.derefer(assign::Tusize::NumUnassertedVar).max(1).ilog2();
let nc: u32 = cdb
.iter()
.filter(|c| !c.is_dead() && 2 < c.len())
.count()
.max(1)
.ilog2();

Ok(SearchState {
Expand Down

0 comments on commit ef82dc9

Please sign in to comment.