Class LogicalTautologyOrError

All Implemented Interfaces:
Consumer<EK9Parser.ExpressionContext>

final class LogicalTautologyOrError extends TypedSymbolAccess implements Consumer<EK9Parser.ExpressionContext>
Detects logical tautologies and contradictions (E08085).

Expressions like a or not a are always true (tautology) and a and not a are always false (contradiction). These indicate logic errors or dead code.

Only the direct pattern X op not X (and reversed not X op X) is detected. General propositional logic simplification is not attempted.