Skip to main content

Module constraint

Module constraint 

Source
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§

BindingConstraint
The binding of var to value. The value is the bound expression as written, memory reads included: it records what var was bound to, not an equality that holds afterwards.
BindingConstraintObj
The object behind BindingConstraint.
Constraint
The base of every fact a ConstraintContext holds; it owns no analyzer state.
ConstraintContext
A context of constraints: the premises in effect at a point of a traversal, ancestors’ first.
ConstraintContextObj
The object of a ConstraintContext, with the layout of the native one and a stable identity.
ConstraintObj
The object behind Constraint.
PredicateConstraint
The fact that the boolean condition holds. With assume_always, the caller guarantees it holds throughout the scope, even after the values it reads change.
PredicateConstraintObj
The object behind PredicateConstraint.
RangeConstraint
The fact that var lies in the half-open range, which may be wider than the values var takes.
RangeConstraintObj
The object behind RangeConstraint.