aboutsummaryrefslogtreecommitdiff
path: root/proofsearch/include/atp/core/term_bank.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-07 03:59:58 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-07 03:59:58 +0800
commit598f364de0a809747714294326a0193788e0bdfb (patch)
tree1ab77a340ab0930b41ffc6291d06b12d1b302a88 /proofsearch/include/atp/core/term_bank.h
parent593a94a3c13aff82b31fd6c61e0ae07b97a2e426 (diff)
downloadrcc-project-598f364de0a809747714294326a0193788e0bdfb.tar.gz
rcc-project-598f364de0a809747714294326a0193788e0bdfb.tar.xz
refactor: rename struct members to follow trailing underscore naming convention across core, search, and frontend components
Diffstat (limited to 'proofsearch/include/atp/core/term_bank.h')
-rw-r--r--proofsearch/include/atp/core/term_bank.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/proofsearch/include/atp/core/term_bank.h b/proofsearch/include/atp/core/term_bank.h
index f909e2f..3339ceb 100644
--- a/proofsearch/include/atp/core/term_bank.h
+++ b/proofsearch/include/atp/core/term_bank.h
@@ -61,17 +61,17 @@ class TermBank {
private:
struct TermKey {
- SymbolId symbol;
- std::vector<TermId> args;
+ SymbolId symbol_;
+ std::vector<TermId> args_;
bool operator==(const TermKey& other) const = default;
};
struct TermKeyHash {
size_t operator()(const TermKey& key) const {
- size_t seed = std::hash<uint32_t>{}(key.symbol);
- for (TermId arg : key.args) {
- seed ^= std::hash<uint32_t>{}(arg) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
+ size_t seed = std::hash<uint32_t>{}(key.symbol_);
+ for (const TermId kArg : key.args_) {
+ seed ^= std::hash<TermId>{}(kArg) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
return seed;
}