#[non_exhaustive]pub enum Verdict {
Show 15 variants
Success,
InvariantViolated {
property: String,
initial: bool,
},
PropertyViolatedInitially {
property: String,
},
ActionPropertyViolated {
property: String,
},
Deadlock,
AssumptionFalse {
property: String,
message: String,
},
PostconditionFalse {
property: String,
message: String,
},
ModelError {
code: u32,
name: String,
message: String,
},
NotCompletelySpecified {
initial: bool,
variables: Vec<String>,
message: String,
initial_candidate: Option<PartialState>,
},
EvaluationError {
site: ErrorSite,
code: u32,
name: &'static str,
reported: u32,
message: String,
verified: bool,
cause: EvalError,
invariant: Option<String>,
},
Unsupported {
feature: String,
},
ResourceLimit {
message: String,
},
Stopped(Box<Stopped>),
BudgetMeasurement {
error: MeasurementError,
},
InternalError {
message: String,
},
}Expand description
The verdict of a check.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Success
The search finished without finding a violation.
InvariantViolated
An invariant is violated, in an initial state (initial) or a later
one.
Fields
PropertyViolatedInitially
An implied initial predicate (a state-level part of a PROPERTY) is
violated by an initial state.
ActionPropertyViolated
An implied action ([][A]_v in a PROPERTY) is violated by a step.
Deadlock
A reachable state has no successor at all.
AssumptionFalse
An ASSUME is false.
Fields
PostconditionFalse
A POSTCONDITION is not TRUE after a complete search.
ModelError
TLC’s error while processing the model (configuration, constants, start-up evaluation), as the binding stage reports it.
NotCompletelySpecified
A successor leaves a variable unassigned.
Fields
message: StringTLC’s message (TLC_STATE_NOT_COMPLETELY_SPECIFIED_NEXT, or
TLC_INITIAL_STATE for an initial state).
initial_candidate: Option<PartialState>Actual partial Init candidate, printed inside TLC’s error message, separately from its absent formal counterexample.
EvaluationError
Evaluation failed with an error TLC also raises (including a failed
Assert and integer overflow), classified as TLC classifies it at
site (the error-class table in class.rs).
Fields
code: u32TLC’s deciding code: what its run returns, which decides its exit
status (ModelChecker.modelCheck). After an error while
exploring, TLC replays the step with its call stack recorded, and
the replay decides it (TLC_NESTED_EXPRESSION, or the code of the
EvalException it meets again).
reported: u32The code of the error message TLC prints first: the site’s
wrapper (TLC_INVARIANT_EVALUATION_FAILED, GENERAL, …) or the
error’s own code.
Unsupported
dive refused, naming the feature. Never a verdict about the model.
ResourceLimit
A resource limit (evaluation depth, memory) was hit. Never a verdict about the model.
Stopped(Box<Stopped>)
The run’s budget (--time-limit, --max-memory) was exhausted.
Never a verdict about the model; the statistics are those
at the stop.
BudgetMeasurement
A required process-memory observation failed; never a model verdict.
Fields
error: MeasurementErrorTyped measurement failure, without an invented observed byte count.
InternalError
An internal invariant of dive failed: a bug, never a verdict.