summaryrefslogtreecommitdiff
path: root/src/theory/theory_engine.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-02-17 11:17:02 -0600
committerGitHub <noreply@github.com>2020-02-17 09:17:02 -0800
commitb19c08997e15d2e42f61f1936fd60c5e34081d68 (patch)
treeee91b86dcc64a2e8c5106f173974151245b641c6 /src/theory/theory_engine.cpp
parent27e1a5835139d5107010475cb951a1aa1350e7f4 (diff)
Fix soundness bug in reduction of integer div/mod (#3766)
This was introduced 7 years ago in https://github.com/CVC4/CVC4/commit/9098391fe334d829ec4101f190b8f1fa21c30752. This impacted any case of integer div/mod of the form `(mod c t)` or `(div c t)` where c is a constant and `t` is not. Fixes #3765. Also improves `--dump=t-lemmas` trace to result in smt-lib compatible output, which was required for debugging this.
Diffstat (limited to 'src/theory/theory_engine.cpp')
-rw-r--r--src/theory/theory_engine.cpp4
1 files changed, 2 insertions, 2 deletions
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