Filter for removing tautological clauses. A tautological clause or simple a tautology is a clause that contains a literal and its complement, thus always satisfied. More...
#include <Parsers.hpp>
Public Member Functions | |
bool | initMembers (unsigned int varCount, unsigned int clauseCount) override |
Initialize the tautology filter. | |
bool | operator() (simpleClause &clause) override |
Check if a clause is a tautology. | |
Public Member Functions inherited from Parsers::ClauseProcessor |
Filter for removing tautological clauses. A tautological clause or simple a tautology is a clause that contains a literal and its complement, thus always satisfied.
TautologyFilter checks for and removes tautological clauses during parsing.
|
overridevirtual |
Initialize the tautology filter.
varCount | The number of variables in the problem. |
clauseCount | The number of clauses in the problem. |
Implements Parsers::ClauseProcessor.
|
overridevirtual |
Check if a clause is a tautology.
This method checks if the clause contains both a literal and its negation.
clause | The clause to check. |
Implements Parsers::ClauseProcessor.