Fix to interactive mode determination.
authorMorgan Deters <mdeters@cs.nyu.edu>
Thu, 19 Dec 2013 16:52:00 +0000 (11:52 -0500)
committerMorgan Deters <mdeters@cs.nyu.edu>
Sun, 22 Dec 2013 17:06:06 +0000 (12:06 -0500)
src/main/driver_unified.cpp

index 1922455d6763081d48495cb3deea5b890aa1033c..d1baaa2e95f4b334f2bd622568927ec2b383db18 100644 (file)
@@ -237,7 +237,7 @@ int runCvc4(int argc, char* argv[], Options& opts) {
     // Parse and execute commands until we are done
     Command* cmd;
     bool status = true;
-    if(opts[options::interactive]) {
+    if(opts[options::interactive] && inputFromStdin) {
 #ifndef PORTFOLIO_BUILD
       if(!opts.wasSetByUser(options::incrementalSolving)) {
         cmd = new SetOptionCommand("incremental", true);