summaryrefslogtreecommitdiff
path: root/src/smt/smt_engine.cpp
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-10-08 09:05:50 -0700
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-10-08 11:05:50 -0500
commit09af96d09c4cb90c976fee700daba8af34bed1e4 (patch)
tree119f3b95ad5fcb3c569d2da8f20a3783cabfdf4f /src/smt/smt_engine.cpp
parent00ccc01140bcdeaadedf8ae1b9f224ccdc812bc0 (diff)
Disallow --proof and --incremental (#3332)
Diffstat (limited to 'src/smt/smt_engine.cpp')
-rw-r--r--src/smt/smt_engine.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp
index 8705bfb9b..d72b303a6 100644
--- a/src/smt/smt_engine.cpp
+++ b/src/smt/smt_engine.cpp
@@ -2269,13 +2269,20 @@ void SmtEngine::setDefaults() {
}
}
- if(options::incrementalSolving() && options::proof()) {
- Warning() << "SmtEngine: turning off incremental solving mode (not yet supported with --proof, try --tear-down-incremental instead)" << endl;
- setOption("incremental", SExpr("false"));
- }
-
if (options::proof())
{
+ if (options::incrementalSolving())
+ {
+ if (options::incrementalSolving.wasSetByUser())
+ {
+ throw OptionException("--incremental is not supported with proofs");
+ }
+ Warning()
+ << "SmtEngine: turning off incremental solving mode (not yet "
+ "supported with --proof, try --tear-down-incremental instead)"
+ << endl;
+ setOption("incremental", SExpr("false"));
+ }
if (d_logic > LogicInfo("QF_AUFBVLRA")) {
throw OptionException(
"Proofs are only supported for sub-logics of QF_AUFBVLIA.");
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback