diff options
author | Andres Notzli <andres.noetzli@gmail.com> | 2016-08-09 19:24:28 -0700 |
---|---|---|
committer | Andres Notzli <andres.noetzli@gmail.com> | 2016-08-11 23:28:15 -0700 |
commit | 1dddbc74f01619928263b42bf4b4ef6a6ccb2f28 (patch) | |
tree | 9fed432f9e9bcb81dd3b015326d7fa7f73c197f1 /src/proof/theory_proof.cpp | |
parent | 841acca266b026c9c1d20cb1adf0e73da15a0c10 (diff) |
Add support for fewer preprocessing holes
This commit adds support for the --fewer-preprocessing-holes flag. This
flag changes the preprocessing part in proofs in two ways: it (1)
removes assertions that are just restating inputs and uses the inputs
directly instead and it (2) changes the form of the preprocessed
assertions to contain the input that they originate from.
The code in this commit is mostly taken from the proofs branch in Guy's
fork.
Diffstat (limited to 'src/proof/theory_proof.cpp')
-rw-r--r-- | src/proof/theory_proof.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/proof/theory_proof.cpp b/src/proof/theory_proof.cpp index d29fc8615..1912dbada 100644 --- a/src/proof/theory_proof.cpp +++ b/src/proof/theory_proof.cpp @@ -321,15 +321,12 @@ void LFSCTheoryProofEngine::registerTermsFromAssertions() { void LFSCTheoryProofEngine::printAssertions(std::ostream& os, std::ostream& paren) { Debug("pf::tp") << "LFSCTheoryProofEngine::printAssertions called" << std::endl << std::endl; - unsigned counter = 0; ProofManager::assertions_iterator it = ProofManager::currentPM()->begin_assertions(); ProofManager::assertions_iterator end = ProofManager::currentPM()->end_assertions(); for (; it != end; ++it) { Debug("pf::tp") << "printAssertions: assertion is: " << *it << std::endl; - std::ostringstream name; - name << "A" << counter++; - os << "(% " << name.str() << " (th_holds "; + os << "(% " << ProofManager::currentPM()->getInputFormulaName(*it) << " (th_holds "; // Assertions appear before the global let map, so we use a dummpMap to avoid letification here. ProofLetMap dummyMap; |