summaryrefslogtreecommitdiff
path: root/src/main/driver_unified.cpp
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2013-02-15 13:40:29 -0800
committerKshitij Bansal <kshitij@cs.nyu.edu>2013-02-15 13:40:29 -0800
commit3ccc9e706aeb6c9176505c21e9e205f2c5f97d11 (patch)
treec670d02103e7f6efdb04dfb04cb122e9b427ca78 /src/main/driver_unified.cpp
parent814526633b07146d4f0f9e6d24583bd6e645d8cd (diff)
parenta4d92de5f34bffcad05a6de04c52478f93029e26 (diff)
Merge pull request #5 from kbansal/1.0.x
make incremental+portfolio experimental
Diffstat (limited to 'src/main/driver_unified.cpp')
-rw-r--r--src/main/driver_unified.cpp22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp
index c27179ee5..624573391 100644
--- a/src/main/driver_unified.cpp
+++ b/src/main/driver_unified.cpp
@@ -26,6 +26,7 @@
#include "cvc4autoconfig.h"
#include "main/main.h"
#include "main/interactive_shell.h"
+#include "main/options.h"
#include "parser/parser.h"
#include "parser/parser_builder.h"
#include "parser/parser_exception.h"
@@ -187,17 +188,22 @@ int runCvc4(int argc, char* argv[], Options& opts) {
DumpChannel.getStream() << Expr::setlanguage(opts[options::outputLanguage]);
// Create the expression manager using appropriate options
+ ExprManager* exprMgr;
# ifndef PORTFOLIO_BUILD
- ExprManager* exprMgr = new ExprManager(opts);
-# else
- vector<Options> threadOpts = parseThreadSpecificOptions(opts);
- ExprManager* exprMgr = new ExprManager(threadOpts[0]);
-# endif
-
-# ifndef PORTFOLIO_BUILD
+ exprMgr = new ExprManager(opts);
pExecutor = new CommandExecutor(*exprMgr, opts);
# else
- pExecutor = new CommandExecutorPortfolio(*exprMgr, opts, threadOpts);
+ vector<Options> threadOpts = parseThreadSpecificOptions(opts);
+ if(opts[options::incrementalSolving] && !opts[options::incrementalParallel]) {
+ Warning() << "WARNING: In --incremental mode, using the sequential solver unless forced by...\n"
+ << "WARNING: ...the experimental --incremental-parallel option.\n";
+ exprMgr = new ExprManager(opts);
+ pExecutor = new CommandExecutor(*exprMgr, opts);
+ }
+ else {
+ exprMgr = new ExprManager(threadOpts[0]);
+ pExecutor = new CommandExecutorPortfolio(*exprMgr, opts, threadOpts);
+ }
# endif
Parser* replayParser = NULL;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback