Sha256: 1bf9cdd1a3203b6ef53434b86db559d2b00199381252652a1ee15e54357d27b4
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
# encoding: utf-8 module Veritas class Optimizer module Function class Predicate # Abstract base class representing Inequality optimizations class Inequality < self include Comparable # Optimize when the operand are a contradiction class Contradiction < self include Predicate::Contradiction # Test if the operands are a contradiction # # @return [Boolean] # # @api private def optimizable? left.equal?(right) end end # class Contradiction # Optimize when the operand are a tautology class Tautology < self include Comparable::NeverEquivalent, Predicate::Tautology end # class Tautology Veritas::Function::Predicate::Inequality.optimizer = chain( ConstantOperands, Contradiction, Tautology, NormalizableOperands, UnoptimizedOperands ) end # class Inequality end # class Predicate end # module Function end # class Optimizer end # module Veritas
Version data entries
4 entries across 4 versions & 1 rubygems