pub struct Z3 {
pub queries: usize,
pub z3_calls: usize,
/* private fields */
}Expand description
A cached Z3 pipe, using either the command line or a JavaScript callback.
Fields§
§queries: usizeObligations submitted.
z3_calls: usizeObligations passed to z3.
Implementations§
Source§impl Z3
impl Z3
Sourcepub fn new_cli(cache_dir: Option<PathBuf>) -> Option<Self>
pub fn new_cli(cache_dir: Option<PathBuf>) -> Option<Self>
Expect the z3 command to be available in the environment.
Optionally provide a filesystem cache for model output.
Sourcepub fn new_wasm(callback: Function) -> Self
pub fn new_wasm(callback: Function) -> Self
Pass a javascript callback string->string for smt2 input.
Sourcepub fn entails_lia(
&mut self,
facts: &[Constraint],
goal: &Constraint,
nonneg: &[Var],
names: &[&str],
) -> Verdict
pub fn entails_lia( &mut self, facts: &[Constraint], goal: &Constraint, nonneg: &[Var], names: &[&str], ) -> Verdict
Try to prove a goal given facts by linearizing the whole system.
Auto Trait Implementations§
impl !RefUnwindSafe for Z3
impl !Send for Z3
impl !Sync for Z3
impl !UnwindSafe for Z3
impl Freeze for Z3
impl Unpin for Z3
impl UnsafeUnpin for Z3
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