[−][src]Struct splr::state::State
Data storage for Solver
.
Fields
config: Config
solver configuration
stats: [usize; 4]
collection of statistics data
target: CNFDescription
problem description
reflection_interval: usize
strategy adjustment interval in conflict
to_vivify: f64
time to execute vivification
vivify_thr: usize
loop limit of vivification loop
b_lvl: Ema
EMA of backjump levels
c_lvl: Ema
EMA of conflicting levels
conflicts: Vec<Lit>
hold conflicting literals for UNSAT problems
last_asg: usize
hold the previous number of non-conflicting assignment
new_learnt: Vec<Lit>
working place to build learnt clauses
derive20: Vec<ClauseId>
working place to store given clauses' ids which is used to derive a good learnt
progress_cnt: usize
progress
invocation counter
record: ProgressRecord
keep the previous statistics values
start: Instant
start clock for timeout handling
time_limit: f64
upper limit for timeout handling
Trait Implementations
impl Debug for State
[src]
impl Default for State
[src]
impl Display for State
[src]
impl Index<LogF64Id> for State
[src]
type Output = f64
The returned type after indexing.
pub fn index(&self, i: LogF64Id) -> &Self::Output
[src]
impl Index<LogUsizeId> for State
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, i: LogUsizeId) -> &Self::Output
[src]
impl Index<Stat> for State
[src]
impl IndexMut<LogF64Id> for State
[src]
impl IndexMut<LogUsizeId> for State
[src]
pub fn index_mut(&mut self, i: LogUsizeId) -> &mut Self::Output
[src]
impl IndexMut<Stat> for State
[src]
impl Instantiate for State
[src]
pub fn instantiate(config: &Config, cnf: &CNFDescription) -> State
[src]
pub fn handle(&mut self, e: SolverEvent)
[src]
impl StateIF for State
[src]
pub fn is_timeout(&self) -> bool
[src]
pub fn elapsed(&self) -> Option<f64>
[src]
pub fn progress_header(&mut self)
[src]
pub fn flush<S: AsRef<str>>(&self, mes: S)
[src]
pub fn log<S: AsRef<str>>(&mut self, tick: usize, mes: S)
[src]
pub fn progress<'r, A, C, E, R>(
&mut self,
asg: &A,
cdb: &C,
elim: &E,
rst: &'r R
) where
A: AssignIF + VarSelectIF + Export<(usize, usize, usize, f64), ()>,
C: Export<(usize, usize, usize, usize, usize, usize), bool>,
E: Export<(usize, usize, f64), ()>,
R: RestartIF + ExportBox<'r, RestarterEMAs<'r>>,
[src]
&mut self,
asg: &A,
cdb: &C,
elim: &E,
rst: &'r R
) where
A: AssignIF + VarSelectIF + Export<(usize, usize, usize, f64), ()>,
C: Export<(usize, usize, usize, usize, usize, usize), bool>,
E: Export<(usize, usize, f64), ()>,
R: RestartIF + ExportBox<'r, RestarterEMAs<'r>>,
mes
should be shorter than or equal to 9, or 8 + a delimiter.
Auto Trait Implementations
impl RefUnwindSafe for State
[src]
impl Send for State
[src]
impl Sync for State
[src]
impl Unpin for State
[src]
impl UnwindSafe for State
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,