public final class Projector extends Object implements SemanticStage.FoldCheck
PROJECTOR checks of algorithms/fold-v1.md, Section 11: folds each statement with
FoldKernel and compares the result with the Fact layer of the same document, at stage
SEMANTIC.
The comparison is a port of the reference runner's (conformance/run.py, class Projector),
so a document gets the same diagnostic codes from both, with one declared difference: the reference leaves out
the derived-unit rules of Section 7.3, and this check applies them, so a statement of a derived unit whose text
is only OBSERVED folds to ASSUMED Occurrences and writes bounded by PARTIAL.
| Modifier and Type | Field and Description |
|---|---|
static SemanticStage.FoldCheck |
CHECK
The check to give
LineageValidator.standard(gudusoft.gsqlparser.lineage.v2.validation.SourceTextProvider), with the
kernel's default limits. |
| Modifier and Type | Method and Description |
|---|---|
void |
check(DocumentIndex index,
List<Finding> findings,
List<String> notes) |
static SemanticStage.FoldCheck |
withLimits(int maxStates,
int maxWorlds)
The check with other limits on the work of folding one statement (see
FoldKernel). |
public static final SemanticStage.FoldCheck CHECK
LineageValidator.standard(gudusoft.gsqlparser.lineage.v2.validation.SourceTextProvider), with the
kernel's default limits.public static SemanticStage.FoldCheck withLimits(int maxStates, int maxWorlds)
FoldKernel).public void check(DocumentIndex index, List<Finding> findings, List<String> notes)
check in interface SemanticStage.FoldCheck