#[non_exhaustive]pub enum Error {
Range,
TooManyVariables {
requested: usize,
},
DimensionMismatch {
expected: usize,
found: usize,
},
ClockOutOfRange {
clock: usize,
variables: usize,
},
NegativeConstant {
value: i32,
},
InvalidMaxBounds {
variable: usize,
value: i32,
},
}Expand description
An invalid argument or an unrepresentable bound in a zone operation.
An inconsistent zone is not an error: it is returned as Ok with
Dbm::is_empty equal to true. Error::Range instead indicates
that exact finite arithmetic required a constant outside the supported
range. Do not interpret Range as an empty zone or silently clamp it.
Argument validation precedes emptiness checks, so invalid arguments are rejected even for empty input zones.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Range
Exact arithmetic would leave [MIN_CONSTANT, MAX_CONSTANT].
This is not emptiness and not “unsatisfiable”.
TooManyVariables
More than MAX_VARIABLES clocks requested.
DimensionMismatch
Two operands (DBM/DBM, DBM/MaxBounds) disagree on the number of variables.
Fields
ClockOutOfRange
A clock index ≥ dimension of the DBM it is used with.
Fields
NegativeConstant
Reset to a negative value (clocks are nonnegative).
InvalidMaxBounds
A MaxBounds ceiling is negative or unrepresentable.
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl Error for Error
Available on non-creusot only.
impl Error for Error
creusot only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()