diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-09-26 03:07:01 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-09-26 03:07:01 +0000 |
commit | 7f84ff856af53047c2af2c1c1987340f9075ec7c (patch) | |
tree | 6e49732af41fccb76edbc004f6e62f1751cebc64 /src/main/driver_unified.cpp | |
parent | 60c0b1855d20aeb67ac16312bb4dd00664e28f8f (diff) |
The Tuesday Afternoon Catch-All Commit (TACAC):
* --early-exit and --no-early-exit command line options (the former is default for all builds except debug builds)
* New SEXPR kind for doing lists of things (we previously used TUPLEs for this purpose, but TUPLEs will be used in future by the datatypes theory, and so cannot have function symbols in them, etc.).
* SMT-LIB compliant output for (set-option :produce-unsat-cores true) and (get-unsat-core)
(this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'src/main/driver_unified.cpp')
-rw-r--r-- | src/main/driver_unified.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp index 4ac137ef1..20b4c2bc2 100644 --- a/src/main/driver_unified.cpp +++ b/src/main/driver_unified.cpp @@ -314,5 +314,16 @@ int runCvc4(int argc, char* argv[], Options& opts) { if(opts[options::statistics]) { cmdExecutor.flushStatistics(*opts[options::err]); } + +#ifdef CVC4_DEBUG + if(opts[options::earlyExit] && opts.wasSetByUser(options::earlyExit)) { + _exit(returnValue); + } +#else /* CVC4_DEBUG */ + if(opts[options::earlyExit]) { + _exit(returnValue); + } +#endif /* CVC4_DEBUG */ + return returnValue; } |