Trait cadical::Callbacks

source ·
pub trait Callbacks {
    fn started(&mut self) { ... }
    fn terminate(&mut self) -> bool { ... }
    fn max_length(&self) -> i32 { ... }
    fn learn(&mut self, clause: &[i32]) { ... }
}
Expand description

Callbacks trait for finer control.

Provided Methods§

Called when the solve method is called.

Called by the solver periodically to check if it should terminate.

Returns the maximum length of clauses to be passed to learn. This methods will be called only once when set_callbacks is called.

Called by the solver when a new derived clause is learnt.

Implementors§