diff options
Diffstat (limited to 'include/atp/core/term.h')
| -rw-r--r-- | include/atp/core/term.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/atp/core/term.h b/include/atp/core/term.h index 017882a..2be01e7 100644 --- a/include/atp/core/term.h +++ b/include/atp/core/term.h @@ -24,22 +24,20 @@ /// V1 uses vector<TermId> for args. /// Future: flat arena with contiguous arg storage for cache locality. -#include <vector> - #include "atp/core/types.h" +#include <vector> + namespace atp { /// A term is a function/predicate application: f(t1, t2, ..., tn). /// Variables are 0-arity terms whose symbol has SymbolKind::kVariable. struct Term { - SymbolId symbol_id; ///< Index into the SymbolTable - std::vector<TermId> args; ///< Argument sub-term IDs + SymbolId symbol_id; ///< Index into the SymbolTable + std::vector<TermId> args; ///< Argument sub-term IDs /// Number of arguments. - [[nodiscard]] uint16_t arity() const { - return static_cast<uint16_t>(args.size()); - } + [[nodiscard]] uint16_t arity() const { return static_cast<uint16_t>(args.size()); } }; } // namespace atp |
