[−][src]Trait splr::traits::StateIF
API for state/statistics management, providing progress
.
Required methods
fn new(config: &Config, cnf: CNFDescription) -> State
return an initialized state based on solver configuration and data about a CNF file.
fn num_unsolved_vars(&self) -> usize
return the number of unsolved vars.
fn is_timeout(&self) -> bool
return true
if it is timed out.
fn adapt_strategy(&mut self, cdb: &mut ClauseDB, vdb: &mut VarDB)
change heuristics based on stat data.
fn progress_header(&self)
write a header of stat data to stdio.
fn progress(&mut self, cdb: &ClauseDB, vars: &VarDB, mes: Option<&str>)
write stat data to stdio.
fn flush(&self, mes: &str)
write a short message to stdout.
Implementors
impl StateIF for State
[src]
fn new(config: &Config, cnf: CNFDescription) -> State
[src]
fn num_unsolved_vars(&self) -> usize
[src]
fn is_timeout(&self) -> bool
[src]
fn adapt_strategy(&mut self, cdb: &mut ClauseDB, vdb: &mut VarDB)
[src]
fn progress_header(&self)
[src]
fn flush(&self, mes: &str)
[src]
fn progress(&mut self, cdb: &ClauseDB, vars: &VarDB, mes: Option<&str>)
[src]
mes
should be shorter than or equal to 9, or 8 + a delimiter.