pub struct Model { /* private fields */ }Expand description
Everything the rules are allowed to say, and what each of it means.
Implementations§
Source§impl Model
impl Model
Sourcepub fn read(path: &str, text: &str) -> Result<Model, Vec<Error>>
pub fn read(path: &str, text: &str) -> Result<Model, Vec<Error>>
Read a model from text.
§Errors
Anything that is not a well formed (semantics (head params) body) form, and any head
given a meaning twice.
Sourcepub fn write(
&self,
path: &str,
term: &Term,
widths: &Widths,
) -> Result<(String, u32), Error>
pub fn write( &self, path: &str, term: &Term, widths: &Widths, ) -> Result<(String, u32), Error>
Write one term out as SMT-LIB, expanding everything the model defines, and say how wide what it computes is.
§Errors
A head that is neither a builtin nor in the model, since that is a term nobody has said the meaning of, an application of the wrong number of arguments, and anything whose widths do not fit together.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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