summaryrefslogtreecommitdiff
path: root/src/smt
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-06-20 15:13:23 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2014-06-23 17:26:14 -0400
commit55ca82cf4c48911e7cdad7f82b58497ba9822579 (patch)
tree1d77a72676b544c0d9f11f8ec3f5d7cdc07c834a /src/smt
parent10f34b74c309fa24ec14e92d65f96d1e831264a5 (diff)
Fatal error if --unconstrained-simp and --produce-models used together (before it would just override the user and turn off models).
Diffstat (limited to 'src/smt')
-rw-r--r--src/smt/smt_engine.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index ffe239e2f..8938cd769 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -1064,14 +1064,23 @@ void SmtEngine::setDefaults() {
// Unconstrained simp currently does *not* support model generation
if (options::unconstrainedSimp.wasSetByUser() && options::unconstrainedSimp()) {
if (options::produceModels()) {
+ if (options::produceModels.wasSetByUser()) {
+ throw OptionException("Cannot use unconstrained-simp with model generation.");
+ }
Notice() << "SmtEngine: turning off produce-models to support unconstrainedSimp" << endl;
setOption("produce-models", SExpr("false"));
}
if (options::produceAssignments()) {
+ if (options::produceAssignments.wasSetByUser()) {
+ throw OptionException("Cannot use unconstrained-simp with model generation (produce-assignments).");
+ }
Notice() << "SmtEngine: turning off produce-assignments to support unconstrainedSimp" << endl;
setOption("produce-assignments", SExpr("false"));
}
if (options::checkModels()) {
+ if (options::checkModels.wasSetByUser()) {
+ throw OptionException("Cannot use unconstrained-simp with model generation (check-models).");
+ }
Notice() << "SmtEngine: turning off check-models to support unconstrainedSimp" << endl;
setOption("check-models", SExpr("false"));
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback