pub struct Trace {
pub states: Vec<Arc<[Option<Value>]>>,
pub labels: Vec<Option<Label>>,
pub ending: Ending,
pub length: Option<usize>,
pub properties: Vec<String>,
}Expand description
A counterexample (or behavior) read against a model.
Fields§
§states: Vec<Arc<[Option<Value>]>>The states.
labels: Vec<Option<Label>>The label of the step into each state (labels[0] is None).
ending: EndingWhat the trace claims.
length: Option<usize>The claimed number of states, if given.
properties: Vec<String>All temporal properties claimed false on a periodic word.
Implementations§
Source§impl Trace
impl Trace
Sourcepub fn logical_length(&self) -> usize
pub fn logical_length(&self) -> usize
Logical length, counting a separate partial terminal candidate.
Sourcepub fn decode(model: &Model, doc: &TraceDoc) -> Result<Trace, ShapeError>
pub fn decode(model: &Model, doc: &TraceDoc) -> Result<Trace, ShapeError>
Reads a Source::Dive document’s values against model, checking
that every state assigns exactly the model’s variables. A
Source::Tlc document is read by crate::tlc instead.
§Errors
The first state that does not fit, or a missing ending.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Trace
impl !UnwindSafe for Trace
impl Forget for Trace
impl Freeze for Trace
impl Move for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnsafeUnpin for Trace
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