Class CounterexampleDirective
java.lang.Object
org.ek9lang.compiler.directives.ResolutionDirective
org.ek9lang.compiler.directives.CounterexampleDirective
- All Implemented Interfaces:
Directive
Compiler self-verification directive (NOT an end-user feature) asserting that the Layer-2 symbolic
engine found a specific witnessing input for a construct
(docs/tooling/EK9_SYMBOLIC_SCANNER_IMPLEMENTATION_SPEC.md ยง4). Lives only in the compiler's own
.ek9 test fixtures, exactly like @Obligations, to pin the counterexample search.
Checked at the SYMBOLIC_ANALYSIS phase, which only runs under -Xverify.
The asserted value is the quoted witness as name=value; the check passes when it is one of
the construct's squirrelled counterexamples:
@Counterexample: SYMBOLIC_ANALYSIS: FUNCTION: "com.acme::safeAverage": "count=0"
-
Constructor Summary
ConstructorsConstructorDescriptionThe Directive to test a squirrelled symbolic counterexample witness in EK9 instrumented code. -
Method Summary
Methods inherited from class ResolutionDirective
getAdditionalName, getAppliesToLineNumber, getDirectiveToken, getSymbolCategory, getSymbolName, getSymbolSearch, isForPhase, isForVariable, toString
-
Constructor Details
-
CounterexampleDirective
The Directive to test a squirrelled symbolic counterexample witness in EK9 instrumented code.
-
-
Method Details
-
type
Description copied from interface:DirectiveWhat s the type of the directive.
-