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/frontend/tptp_parser.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/frontend/tptp_parser.h')
| -rw-r--r-- | proofsearch/include/atp/frontend/tptp_parser.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/proofsearch/include/atp/frontend/tptp_parser.h b/proofsearch/include/atp/frontend/tptp_parser.h index 075b45e..738d34b 100644 --- a/proofsearch/include/atp/frontend/tptp_parser.h +++ b/proofsearch/include/atp/frontend/tptp_parser.h @@ -42,15 +42,15 @@ namespace atp { /// Role of a TPTP formula. /// See TPTP spec: https://www.tptp.org/TPTP/SyntaxBNF.html enum class FormulaRole : uint8_t { - kAxiom, ///< Background truth - kHypothesis, ///< Problem-specific assumption - kDefinition, ///< Symbol definition (can be unfolded) - kAssumption, ///< Assumed for this proof attempt - kLemma, ///< Derived intermediate result - kTheorem, ///< Previously proved statement (used as axiom) - kConjecture, ///< The statement to prove - kNegatedConjecture, ///< Already negated conjecture (input was cnf) - kPlain, ///< No semantic role specified + kAxiom, ///< Background truth + kHypothesis, ///< Problem-specific assumption + kDefinition, ///< Symbol definition (can be unfolded) + kAssumption, ///< Assumed for this proof attempt + kLemma, ///< Derived intermediate result + kTheorem, ///< Previously proved statement (used as axiom) + kConjecture, ///< The statement to prove + kNegatedConjecture, ///< Already negated conjecture (input was cnf) + kPlain, ///< No semantic role specified }; /// Map a TPTP role string to enum. Returns kPlain for unknown roles. @@ -82,12 +82,10 @@ 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& filepath, TermBank& bank, SymbolTable& symbols); /// Parse a TPTP string (for testing). -ParsedProblem parseTptpString(const std::string& input, - TermBank& bank, SymbolTable& symbols); +ParsedProblem parseTptpString(const std::string& input, TermBank& bank, SymbolTable& symbols); /// Prepare a parsed problem for proving: /// 1. Negate conjecture formulas. @@ -96,7 +94,6 @@ ParsedProblem parseTptpString(const std::string& input, /// 4. Assign ClauseIds and set provenance to kInput. /// /// Returns the final clause set ready for the Prover. -std::vector<Clause> prepareForProving(ParsedProblem& problem, - TermBank& bank, SymbolTable& symbols); +std::vector<Clause> prepareForProving(ParsedProblem& problem, TermBank& bank, SymbolTable& symbols); } // namespace atp |
