summaryrefslogtreecommitdiff
path: root/src/proof/theory_proof.cpp
diff options
context:
space:
mode:
authorAndres Notzli <andres.noetzli@gmail.com>2016-08-08 20:33:24 -0700
committerAndres Notzli <andres.noetzli@gmail.com>2016-08-09 01:05:30 -0700
commitd0610224d0eeab12fd4f779e01b5fdd36c57b304 (patch)
tree03ab85e9d8a9b55e3d259aae53c45c1e3b496eab /src/proof/theory_proof.cpp
parent54fc9c88ac754c96fc0a9c88d6c80c72e9050d34 (diff)
Fix missing/redundant spaces in proofsfix_proof_spaces
Before, in some cases, e.g. when printing sorts and in resolution proofs, the proofs contained redundant and/or missing spaces. With this commit, CVC4 now prints out `(trust_f (= (Array Index Element) let10 let12)` instead of `(trust_f (= (Array Index Element )let10 let12))`.
Diffstat (limited to 'src/proof/theory_proof.cpp')
-rw-r--r--src/proof/theory_proof.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/proof/theory_proof.cpp b/src/proof/theory_proof.cpp
index 8aefaae45..d29fc8615 100644
--- a/src/proof/theory_proof.cpp
+++ b/src/proof/theory_proof.cpp
@@ -861,6 +861,7 @@ void LFSCTheoryProofEngine::printCoreTerm(Expr term, std::ostream& os, const Pro
os << "(";
os << "= ";
printSort(term[0].getType(), os);
+ os << " ";
printBoundTerm(term[0], os, map);
os << " ";
printBoundTerm(term[1], os, map);
@@ -874,6 +875,7 @@ void LFSCTheoryProofEngine::printCoreTerm(Expr term, std::ostream& os, const Pro
if (term.getNumChildren() == 2) {
os << "(not (= ";
printSort(term[0].getType(), os);
+ os << " ";
printBoundTerm(term[0], os, map);
os << " ";
printBoundTerm(term[1], os, map);
@@ -889,6 +891,7 @@ void LFSCTheoryProofEngine::printCoreTerm(Expr term, std::ostream& os, const Pro
if ((i != 0) || (j != 1)) {
os << "(not (= ";
printSort(term[0].getType(), os);
+ os << " ";
printBoundTerm(term[i], os, map);
os << " ";
printBoundTerm(term[j], os, map);
@@ -896,6 +899,7 @@ void LFSCTheoryProofEngine::printCoreTerm(Expr term, std::ostream& os, const Pro
} else {
os << "(not (= ";
printSort(term[0].getType(), os);
+ os << " ";
printBoundTerm(term[0], os, map);
os << " ";
printBoundTerm(term[1], os, map);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback