Module logicng

Class BDDDNFTransformation

    • Constructor Detail

      • BDDDNFTransformation

        public BDDDNFTransformation​(BDDKernel kernel)
        Constructs a new BDD-based DNF transformation with an optional BDD kernel.

        Warning: You can use this object for arbitrarily many transformations, but the number of different variables in all applied formulas must not exceed the number of variables in the kernel.

        Parameters:
        kernel - the optional BDD kernel
      • BDDDNFTransformation

        public BDDDNFTransformation​(FormulaFactory f,
                                    int numVars)
        Constructs a new BDD-based DNF transformation for a given number of variables.

        Warning: You can use this object for arbitrarily many transformations, but the number of different variables in all applied formulas must not exceed numVars.

        To improve performance you might want to use BDDDNFTransformation(BDDKernel), where you have full control over the node and cache size in the used BDD kernel.

        Parameters:
        f - the formula factory to use
        numVars - the number of variables
      • BDDDNFTransformation

        public BDDDNFTransformation()
        Constructs a new BDD-based DNF transformation and constructs a new BDD kernel for every formula application.
    • Method Detail

      • apply

        public Formula apply​(Formula formula,
                             boolean cache)
        Description copied from interface: FormulaTransformation
        Returns the transformed formula.
        Parameters:
        formula - the input formula
        cache - indicated whether the result (and associated predicates) should be cached in the formula's cache.
        Returns:
        the transformed formula