aboutsummaryrefslogtreecommitdiff
path: root/proofsearch/include/atp/core/term.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-04 05:21:26 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-04 05:21:26 +0800
commit593a94a3c13aff82b31fd6c61e0ae07b97a2e426 (patch)
treee58a8954b00d412c5f5c5e80bda6b31029dbe138 /proofsearch/include/atp/core/term.h
parent9a5dd39accb75618dc40b5b4f4a3c059cacf6e04 (diff)
downloadrcc-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.h12
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