summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2017-07-19 15:59:36 -0400
committerGitHub <noreply@github.com>2017-07-19 15:59:36 -0400
commit7fd11d0df4c257a916e93c3f44238f1d3f70f721 (patch)
tree98a748df54d12b7b03b5c20dfaa5ed0e16c8fd60
parent0f3b77bbd30be2388558000085d910d82e81d989 (diff)
Fix simple_vc_compat_cxx example (#202)
The CVC3 compatibility layer was broken because it was setting simplification mode to SIMPLIFICATION_MODE_INCREMENTAL, which is not supported anymore since commit 2dbe1f150d30f0fb0c8522f891104270ce09db4c . This commit changes the compatibility layer to not set the option anymore. This addresses bug 833, which had been reported on the cvc-bugs mailing list.
-rw-r--r--src/compat/cvc3_compat.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compat/cvc3_compat.cpp b/src/compat/cvc3_compat.cpp
index 2757e3dbe..3309ce442 100644
--- a/src/compat/cvc3_compat.cpp
+++ b/src/compat/cvc3_compat.cpp
@@ -924,13 +924,16 @@ void CLFlags::setFlag(const std::string& name,
}
void ValidityChecker::setUpOptions(CVC4::Options& options, const CLFlags& clflags) {
+ // Note: SIMPLIFICATION_MODE_INCREMENTAL, which was used
+ // for CVC3 compatibility, is not supported by CVC4
+ // anymore.
+
// always incremental and model-producing in CVC3 compatibility mode
// also incrementally-simplifying and interactive
d_smt->setOption("incremental", string("true"));
// disable this option by default for now, because datatype models
// are broken [MGD 10/4/2012]
//d_smt->setOption("produce-models", string("true"));
- d_smt->setOption("simplification-mode", string("incremental"));
d_smt->setOption("interactive-mode", string("true"));// support SmtEngine::getAssertions()
d_smt->setOption("statistics", string(clflags["stats"].getBool() ? "true" : "false"));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback