aboutsummaryrefslogtreecommitdiff
path: root/proofsearch/include/atp/frontend
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/frontend
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/frontend')
-rw-r--r--proofsearch/include/atp/frontend/tptp_parser.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/proofsearch/include/atp/frontend/tptp_parser.h b/proofsearch/include/atp/frontend/tptp_parser.h
index 738d34b..89eab6b 100644
--- a/proofsearch/include/atp/frontend/tptp_parser.h
+++ b/proofsearch/include/atp/frontend/tptp_parser.h
@@ -58,22 +58,22 @@ FormulaRole parseRole(std::string_view role_str);
/// A parsed TPTP formula with its name and role.
struct AnnotatedFormula {
- std::string name; ///< Formula name (e.g., "axiom1")
- FormulaRole role; ///< Semantic role
- std::unique_ptr<Formula> formula; ///< The FOL formula (for fof(...))
- std::vector<Clause> clauses; ///< Direct clauses (for cnf(...))
- bool is_cnf = false; ///< true if input was cnf(), false if fof()
+ std::string name_; ///< Formula name (e.g., "axiom1")
+ FormulaRole role_; ///< Semantic role
+ std::unique_ptr<Formula> formula_; ///< The FOL formula (for fof(...))
+ std::vector<Clause> clauses_; ///< Direct clauses (for cnf(...))
+ bool is_cnf_ = false; ///< true if input was cnf(), false if fof()
};
/// A complete parsed TPTP problem.
struct ParsedProblem {
- std::vector<AnnotatedFormula> formulas;
+ std::vector<AnnotatedFormula> formulas_;
/// Does any formula contain an equality predicate?
- bool has_equality = false;
+ bool has_equality_ = false;
/// Original file path (for error messages).
- std::string source_file;
+ std::string source_file_;
};
/// Parse a TPTP file.
@@ -82,7 +82,7 @@ struct ParsedProblem {
/// For `fof(...)` entries: Formula AST is built (clausification happens later).
///
/// All symbols are interned into `symbols` and terms into `bank` during parsing.
-ParsedProblem parseTptpFile(const std::string& filepath, TermBank& bank, SymbolTable& symbols);
+ParsedProblem parseTptpFile(const std::string& filename, TermBank& bank, SymbolTable& symbols);
/// Parse a TPTP string (for testing).
ParsedProblem parseTptpString(const std::string& input, TermBank& bank, SymbolTable& symbols);