use crate::context::ContextState;
pub mod frat;
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
pub enum Report {
Satisfiable,
Unsatisfiable,
Unknown,
}
impl From<ContextState> for Report {
fn from(value: ContextState) -> Self {
match value {
ContextState::Configuration | ContextState::Input | ContextState::Solving => {
Self::Unknown
}
ContextState::Satisfiable => Self::Satisfiable,
ContextState::Unsatisfiable(_) => Self::Unsatisfiable,
}
}
}
impl std::fmt::Display for Report {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Satisfiable => write!(f, "Satisfiable"),
Self::Unsatisfiable => write!(f, "Unsatisfiable"),
Self::Unknown => write!(f, "Unknown"),
}
}
}