Struct uvls::smt::smt_lib::SMTBuilder
source · struct SMTBuilder<'a> {
sym2var: IndexSet<ModuleSymbol>,
assert: Vec<Assert>,
module: &'a Module,
}
Fields§
§sym2var: IndexSet<ModuleSymbol>
Each variable is encoded as v{n} where n is an index into sym2var using an IndexSet enables us to lookup a variable both by index and ModuleSymbol
assert: Vec<Assert>
§module: &'a Module
Implementations§
source§impl<'a> SMTBuilder<'a>
impl<'a> SMTBuilder<'a>
fn var(&self, ms: ModuleSymbol) -> Expr
fn pseudo_bool(&self, ms: ModuleSymbol) -> Expr
fn clause(&self, g: ModuleSymbol) -> Vec<Expr>
fn min_assert(&mut self, min: usize, p_bind: &Expr, g: ModuleSymbol)
fn max_assert(&mut self, max: usize, p_bind: &Expr, g: ModuleSymbol)
fn push_var(&mut self, ms: ModuleSymbol) -> Expr
Auto Trait Implementations§
impl<'a> Freeze for SMTBuilder<'a>
impl<'a> RefUnwindSafe for SMTBuilder<'a>
impl<'a> Send for SMTBuilder<'a>
impl<'a> Sync for SMTBuilder<'a>
impl<'a> Unpin for SMTBuilder<'a>
impl<'a> UnwindSafe for SMTBuilder<'a>
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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