diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-04-07 03:59:58 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-04-07 03:59:58 +0800 |
| commit | 598f364de0a809747714294326a0193788e0bdfb (patch) | |
| tree | 1ab77a340ab0930b41ffc6291d06b12d1b302a88 /proofsearch/src/main.cc | |
| parent | 593a94a3c13aff82b31fd6c61e0ae07b97a2e426 (diff) | |
| download | rcc-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/src/main.cc')
| -rw-r--r-- | proofsearch/src/main.cc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/proofsearch/src/main.cc b/proofsearch/src/main.cc index bd385d8..81dbc91 100644 --- a/proofsearch/src/main.cc +++ b/proofsearch/src/main.cc @@ -27,8 +27,10 @@ #include "atp/search/prover.h" #include <cstdlib> +#include <exception> #include <iostream> #include <string> +#include <utility> int main(int argc, char* argv[]) { std::cerr << "richard-atp-engine Copyright (C) 2026 Richard Qin\n" @@ -41,7 +43,7 @@ int main(int argc, char* argv[]) { return EXIT_FAILURE; } - const std::string filepath = argv[1]; + const std::string kFilepath = argv[1]; try { // 1. Initialize core modules @@ -50,9 +52,9 @@ int main(int argc, char* argv[]) { atp::ClauseStore store; // 2. Parse TPTP input - auto problem = atp::parseTptpFile(filepath, bank, symbols); + auto problem = atp::parseTptpFile(kFilepath, bank, symbols); - std::cerr << "% Parsed " << problem.formulas.size() << " formulas from " << filepath + std::cerr << "% Parsed " << problem.formulas_.size() << " formulas from " << kFilepath << "\n"; // 3. Prepare clauses for proving @@ -63,28 +65,28 @@ int main(int argc, char* argv[]) { // 4. Run the prover atp::Prover prover(bank, store); prover.addClauses(std::move(clauses)); - atp::ProverResult result = prover.prove(); + atp::ProverResult const result = prover.prove(); // 5. Output result (SZS format) switch (result) { case atp::ProverResult::kTheorem: { - std::cout << "% SZS status Theorem for " << filepath << "\n\n"; + std::cout << "% SZS status Theorem for " << kFilepath << "\n\n"; // Extract and print proof auto eid = prover.getEmptyClauseId(); if (eid.has_value()) { auto proof = atp::extractProof(store, *eid); - std::cout << "% SZS output start Proof for " << filepath << "\n"; + std::cout << "% SZS output start Proof for " << kFilepath << "\n"; std::cout << atp::formatProof(proof, store, bank); - std::cout << "% SZS output end Proof for " << filepath << "\n"; + std::cout << "% SZS output end Proof for " << kFilepath << "\n"; } break; } case atp::ProverResult::kSaturation: - std::cout << "% SZS status Satisfiable for " << filepath << "\n"; + std::cout << "% SZS status Satisfiable for " << kFilepath << "\n"; break; case atp::ProverResult::kTimeout: - std::cout << "% SZS status Timeout for " << filepath << "\n"; + std::cout << "% SZS status Timeout for " << kFilepath << "\n"; break; } |
