pub enum SolverError {
EliminatedVariableReintroduction {
var: Var,
},
}Expand description
A condition Solver cannot recover from soundly, distinct from an
ordinary Unsat/Unknown verdict.
Recorded on the solver (see Solver::error) rather than threaded
through Solver::add_clause’s or Solver::solve_with_assumptions’s
existing return types: both are long-established public signatures used
well beyond this crate, and every legitimate caller of either one hits
this only in the one narrow situation each variant documents — changing
their shape for that would be a far larger blast radius than one more
field to check. Once set, Solver::solve, Solver::solve_with_assumptions,
and Solver::solve_with_theory all refuse to report Sat or Unsat
(either could be wrong) and answer SolverResult::Unknown instead,
until Solver::reset clears it.
Variants§
EliminatedVariableReintroduction
A clause or assumption named a variable that Solver::var_eliminated
reports as bounded-variable-eliminated: its defining clauses were
resolved away and replaced by their resolvents (see
bounded_variable_elimination, a private method not part of this
crate’s public API), and this port does not reintroduce such a
variable’s original definition back into the live search on demand
the way CaDiCaL’s extension-stack replay does.
Equivalent-literal-substituted variables do not hit this: they are
rewritten through the substitution map instead (still logically the
same variable, just expressed via its class representative), which is
sound without any reconstruction at all.
Trait Implementations§
Source§impl Clone for SolverError
impl Clone for SolverError
Source§impl Debug for SolverError
impl Debug for SolverError
Source§impl Display for SolverError
impl Display for SolverError
impl Eq for SolverError
Source§impl Error for SolverError
impl Error for SolverError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for SolverError
impl PartialEq for SolverError
impl StructuralPartialEq for SolverError
Auto Trait Implementations§
impl Freeze for SolverError
impl RefUnwindSafe for SolverError
impl Send for SolverError
impl Sync for SolverError
impl Unpin for SolverError
impl UnsafeUnpin for SolverError
impl UnwindSafe for SolverError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more