Helping Functions for Clause Management (Hash and Equality) More...
Classes | |
struct | ClauseExchangeEqual |
Equality functor for ClauseExchange objects. More... | |
struct | ClauseExchangeHash |
Hash functor for ClauseExchange objects. More... | |
struct | ClauseExchangePtrEqual |
Equality functor for ClauseExchangePtr objects. More... | |
struct | ClauseExchangePtrHash |
Hash functor for ClauseExchangePtr objects. More... | |
struct | ClauseHash |
Hash functor for simple clauses. More... | |
Functions | |
size_t | lookup3_hash (size_t key) |
Computes a hash value for a single key using the Jenkins lookup3 algorithm. | |
size_t | lookup3_hash_clause (const int *clause, unsigned int size) |
Computes a hash value for a clause using the Jenkins lookup3 algorithm. | |
std::size_t | hashClause (const simpleClause &clause) |
Computes a hash value for a simple clause. | |
bool | operator== (const simpleClause &lhs, const simpleClause &rhs) |
Equality operator for simple clauses. | |
int | getLiteralsCount (const std::vector< ClauseExchangePtr > &clauses) |
Calculates the total number of literals in a vector of clauses. | |
Helping Functions for Clause Management (Hash and Equality)
int ClauseUtils::getLiteralsCount | ( | const std::vector< ClauseExchangePtr > & | clauses | ) |
Calculates the total number of literals in a vector of clauses.
clauses | Vector of shared pointers to ClauseExchange objects. |
std::size_t ClauseUtils::hashClause | ( | const simpleClause & | clause | ) |
Computes a hash value for a simple clause.
clause | The simple clause to hash. |
|
inline |
Computes a hash value for a single key using the Jenkins lookup3 algorithm.
key | The key to hash. |
|
inline |
Computes a hash value for a clause using the Jenkins lookup3 algorithm.
clause | Pointer to the array of literals in the clause. |
size | Number of literals in the clause. |
bool ClauseUtils::operator== | ( | const simpleClause & | lhs, |
const simpleClause & | rhs ) |
Equality operator for simple clauses.
lhs | The left-hand side simple clause. |
rhs | The right-hand side simple clause. |