Filter for removing redundant clauses. More...
#include <Parsers.hpp>
Public Member Functions | |
bool | initMembers (unsigned int varCount, unsigned int clauseCount) override |
Initialize the redundancy filter. | |
bool | operator() (simpleClause &clause) override |
Check if a clause is redundant. | |
Public Member Functions inherited from Parsers::ClauseProcessor |
Filter for removing redundant clauses.
RedundancyFilter checks for and removes duplicate clauses during parsing.
|
overridevirtual |
Initialize the redundancy 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 redundant.
This method sorts the clause, removes duplicates, and checks if it's already in the clauseCache. If it's new, it's added to the cache.
clause | The clause to check. |
Implements Parsers::ClauseProcessor.