Expand description
Constraints. A Constraint is one fact in scope, a BindingConstraint,
RangeConstraint or PredicateConstraint; a ConstraintContext holds the facts in
scope at a point of a traversal, which an Analyzer proves under.
Structs§
- Binding
Constraint - The binding of
vartovalue. The value is the bound expression as written, memory reads included: it records whatvarwas bound to, not an equality that holds afterwards. - Binding
Constraint Obj - The object behind
BindingConstraint. - Constraint
- The base of every fact a
ConstraintContextholds; it owns no analyzer state. - Constraint
Context - A context of constraints: the premises in effect at a point of a traversal, ancestors’ first.
- Constraint
Context Obj - The object of a
ConstraintContext, with the layout of the native one and a stable identity. - Constraint
Obj - The object behind
Constraint. - Predicate
Constraint - The fact that the boolean
conditionholds. Withassume_always, the caller guarantees it holds throughout the scope, even after the values it reads change. - Predicate
Constraint Obj - The object behind
PredicateConstraint. - Range
Constraint - The fact that
varlies in the half-openrange, which may be wider than the valuesvartakes. - Range
Constraint Obj - The object behind
RangeConstraint.