diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-04-04 05:21:26 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-04-04 05:21:26 +0800 |
| commit | 593a94a3c13aff82b31fd6c61e0ae07b97a2e426 (patch) | |
| tree | e58a8954b00d412c5f5c5e80bda6b31029dbe138 /proofsearch/include/atp/core/term.h | |
| parent | 9a5dd39accb75618dc40b5b4f4a3c059cacf6e04 (diff) | |
| download | rcc-project-593a94a3c13aff82b31fd6c61e0ae07b97a2e426.tar.gz rcc-project-593a94a3c13aff82b31fd6c61e0ae07b97a2e426.tar.xz | |
style: reformat codebase with consistent indentation
Diffstat (limited to 'proofsearch/include/atp/core/term.h')
| -rw-r--r-- | proofsearch/include/atp/core/term.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/proofsearch/include/atp/core/term.h b/proofsearch/include/atp/core/term.h index 017882a..2be01e7 100644 --- a/proofsearch/include/atp/core/term.h +++ b/proofsearch/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 |
