|
|
| SimplePath () |
| | You should () usually never need a more compilcated constructor.
|
| |
| | SimplePath (uint32_t) |
| | Use this constructor if you know how many predicates there are.
|
| |
|
uint32_t | length () const |
| | Straightforward get method.
|
| |
|
void | clear () |
| | evert to the empty state without changing num_preds.
|
| |
|
void | set_num_preds (size_t num_predicates) |
| | Set method for num_predicates.
|
| |
| void | push (const Literal &) |
| | Add a new Literal to the Path.
|
| |
|
Literal | back () const |
| | Get the last Literal in the Path. Non-destructive.
|
| |
|
void | pop () |
| | Remove the last item from the Path.
|
| |
| bool | test_for_regularity (Clause &) const |
| | Regularity test.
|
| |
| void | find_limited_reductions (Unifier &, vector< InferenceItem > &, Clause &) |
| | Given a Clause, find all possible reductions given the current Path, but only for the first Literal in the Clause.
|
| |
| void | find_all_reductions (Unifier &, vector< InferenceItem > &, Clause &) |
| | Given a Clause, find all possible reductions given the current Path.
|
| |
| void | show_path_only (ostream &) |
| | Show just the path.
|
| |
| string | to_string (bool=false) const |
| | Convert the path to a string.
|
| |
| string | make_LaTeX (bool=false) const |
| | Convert the Path only to a LaTeX representation.
|
| |
|
vector< Literal >::const_iterator | cbegin () const |
| | Iterators just traverse the path vector.
|
| |
|
vector< Literal >::const_iterator | cend () const |
| |
|
vector< Literal >::iterator | begin () |
| |
|
vector< Literal >::iterator | end () |
| |
Simple representation of the path within a proof tree.
While the Path class (not part of the source distribution) keeps a separate vector of literals for each possible predicate/negation c ombination so it's fast to get the potential literals for reductions, this does not. The reason is that this one needs to be copied to support full backtracking, and I haven't yet looked at optimising to see what the trade-off is between finding reductions fast, and making copies of the path_index.
This class is also a natural location for any methods used to find reductions, and a natural location for the test_for_regularity method.