You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to define invariants for sequences, e.g. show that a sequence contains no duplicates:
type Extensions is sequence of Extension with
Invariant => (forall I in Extensions =>
(forall J in Extensions =>
(if I /= J then Extensions (I) /= Extensions (J))));
For #8 / #1254 we also need a way to specify invariants that are checked for each element (e.g. while parsing):
type Variable_Byte_Integer is sequence of Variable_Byte_Integer_Element
with
Value =>
(Initial => 0,
Next => Variable_Byte_Integer'Current * 128 + Variable_Byte_Integer'Element.Value,
Until => (Variable_Byte_Integer'Element.More = False)),
Element_Invariant => Variable_Byte_Integer'Position <= 4;
The text was updated successfully, but these errors were encountered:
It should be possible to define invariants for sequences, e.g. show that a sequence contains no duplicates:
For #8 / #1254 we also need a way to specify invariants that are checked for each element (e.g. while parsing):
The text was updated successfully, but these errors were encountered: