Made tear-down-incremental more like it used to be: when tear-down value
authorClark Barrett <barrett@cs.stanford.edu>
Wed, 14 Dec 2016 19:12:58 +0000 (11:12 -0800)
committerClark Barrett <barrett@cs.stanford.edu>
Wed, 14 Dec 2016 19:13:52 +0000 (11:13 -0800)
is 1, it does not automatically enable incremental mode.

src/main/driver_unified.cpp

index e43c8a6ee2d328d93967c20937dda024048bab3c..1da4446a6895aa7019701effe33984382d9483d0 100644 (file)
@@ -320,7 +320,9 @@ int runCvc4(int argc, char* argv[], Options& opts) {
         delete cmd;
       }
     } else if( opts.getTearDownIncremental() > 0) {
-      if(!opts.getIncrementalSolving()) {
+      if(!opts.getIncrementalSolving() && opts.getTearDownIncremental() > 1) {
+        // For tear-down-incremental values greater than 1, need incremental
+        // on too.
         cmd = new SetOptionCommand("incremental", SExpr(true));
         cmd->setMuted(true);
         pExecutor->doCommand(cmd);