|
SAT Solver Template
|
Structure representing a literal in a CNF-SAT problem. More...
#include <basic_structures.hpp>
Public Member Functions | |
| Literal (unsigned val) | |
| unsigned | get () const |
| Literal | negate () const |
| short | sign () const |
| bool | operator== (Literal) const |
Structure representing a literal in a CNF-SAT problem.
A literal of variable x is either x or ¬x
| sat::Literal::Literal | ( | unsigned | val | ) |
| unsigned sat::Literal::get | ( | ) | const |
Gets the underlying literal identifier
Referenced by sat::operator<<().

| Literal sat::Literal::negate | ( | ) | const |
Gets the negated literal
| bool sat::Literal::operator== | ( | Literal | other | ) | const |
Compares underlying literal identifiers
| short sat::Literal::sign | ( | ) | const |
Gets the sign of the literal
Referenced by sat::operator<<().
