Example #1
0
        } // Distribute.

        private static AST Simplify(AST disjunction)
        {
            CnfOr cnf = new CnfOr(disjunction);

            cnf.Simplify();
            return(cnf.Restore());
        }
Example #2
0
        public int CompareTo(object obj)
        {
            CnfOr o = obj as CnfOr;

            return
                (Count < o.Count ? -1
                : Count == o.Count ? 0
                : 1);
        }
Example #3
0
 /// <summary>
 /// Applies Resolution method from a CnfOr over this one.
 /// </summary>
 /// <param name="other">The other CnfOr to be applied over this one.</param>
 /// <returns>A simplified CnfOr or a null clause</returns>
 public CnfOr appliesResolution(CnfOr other)
 {
     // TODO: Implement.
     return(this);
 }