summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/theory/arith/theory_arith_private.cpp2
-rw-r--r--src/theory/theory_engine.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/theory/arith/theory_arith_private.cpp b/src/theory/arith/theory_arith_private.cpp
index 76d8dbc01..0ddded6bf 100644
--- a/src/theory/arith/theory_arith_private.cpp
+++ b/src/theory/arith/theory_arith_private.cpp
@@ -1603,7 +1603,7 @@ Node TheoryArithPrivate::axiomIteForTotalIntDivision(Node int_div_like){
Polynomial rp = Polynomial::parsePolynomial(r);
Polynomial qp = Polynomial::parsePolynomial(q);
- Node abs_d = (n.isConstant()) ?
+ Node abs_d = (d.isConstant()) ?
d.getHead().getConstant().abs().getNode() : mkIntSkolem("abs");
Node eq = Comparison::mkComparison(EQUAL, n, d * qp + rp).getNode();
diff --git a/src/theory/theory_engine.cpp b/src/theory/theory_engine.cpp
index 7549bd973..b43e55364 100644
--- a/src/theory/theory_engine.cpp
+++ b/src/theory/theory_engine.cpp
@@ -1854,11 +1854,11 @@ theory::LemmaStatus TheoryEngine::lemma(TNode node,
if(Dump.isOn("t-lemmas")) {
Node n = node;
- if (negated) {
+ if (!negated) {
n = node.negate();
}
Dump("t-lemmas") << CommentCommand("theory lemma: expect valid")
- << QueryCommand(n.toExpr());
+ << CheckSatCommand(n.toExpr());
}
// Share with other portfolio threads
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback