ConstraintResult
- class ConstraintResult
Description
One
(usage, assertion)pair and the verdict for it.- Variables:
usage – the usage that was checked (the thing written
new Def(...)or a usage carrying declarative bindings).assertion – the
assert constraintusage that was evaluated.verdict – the outcome;
check_usage()producesHOLDS/VIOLATED/UNDECIDABLE, andcheck_model()additionallyUNSUPPORTED.value – the raw value the compiler returned (
Nonewhen it could not evaluate, or a non-boolean it produced); kept for diagnostics.detail – a short human-readable explanation, primarily for the
Verdict.UNDECIDABLEandVerdict.UNSUPPORTEDcases.
Attributes
- assertion: syside.AssertConstraintUsage = None
- usage: syside.Usage = None
- verdict: syside.evaluation.Verdict = None
Used by