diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-06-22 03:15:36 -0400 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-06-22 03:15:36 -0400 |
commit | 5f1cb5037e00c842338d5093e4bae6f1fdeacc67 (patch) | |
tree | 73ebb8f36ff337ec51f4877542a0057a33f25d8e /src/main | |
parent | cca7d0264c74b88be9c987d3c39e16095a628395 (diff) | |
parent | 933a5122ca26194a557a467a082afdafad917335 (diff) |
Merge tag 'smtcomp2014-application'
Conflicts:
contrib/run-script-smtcomp2014-application
src/main/driver_unified.cpp
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/driver_unified.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp index 0cec616fd..2f75c8887 100644 --- a/src/main/driver_unified.cpp +++ b/src/main/driver_unified.cpp @@ -383,11 +383,11 @@ int runCvc4(int argc, char* argv[], Options& opts) { } else { Command* copy = cmd->clone(); allCommands.back().push_back(copy); + status = pExecutor->doCommand(cmd); if(dynamic_cast<QuitCommand*>(cmd) != NULL) { delete cmd; break; } - status = pExecutor->doCommand(cmd); } delete cmd; } @@ -417,11 +417,11 @@ int runCvc4(int argc, char* argv[], Options& opts) { replayParser->useDeclarationsFrom(parser); } while(status && (cmd = parser->nextCommand())) { + status = pExecutor->doCommand(cmd); if(dynamic_cast<QuitCommand*>(cmd) != NULL) { delete cmd; break; } - status = pExecutor->doCommand(cmd); delete cmd; } // Remove the parser @@ -444,6 +444,7 @@ int runCvc4(int argc, char* argv[], Options& opts) { } #ifdef CVC4_COMPETITION_MODE + *opts[options::out] << flush; // exit, don't return (don't want destructors to run) // _exit() from unistd.h doesn't run global destructors // or other on_exit/atexit stuff. |